Default border for a static box is wxBORDER_NONE
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@33274 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -45,6 +45,9 @@ public:
|
|||||||
protected:
|
protected:
|
||||||
virtual wxSize DoGetBestSize() const;
|
virtual wxSize DoGetBestSize() const;
|
||||||
|
|
||||||
|
// choose the default border for this window
|
||||||
|
virtual wxBorder GetDefaultBorder() const;
|
||||||
|
|
||||||
virtual WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const;
|
virtual WXDWORD MSWGetStyle(long style, WXDWORD *exstyle) const;
|
||||||
virtual WXLRESULT MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
|
virtual WXLRESULT MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam);
|
||||||
|
|
||||||
|
@@ -121,11 +121,18 @@ bool wxStaticBox::Create(wxWindow *parent,
|
|||||||
if ( !MSWCreateControl(wxT("BUTTON"), label, pos, size) )
|
if ( !MSWCreateControl(wxT("BUTTON"), label, pos, size) )
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
#ifndef __WXWINCE__
|
||||||
Connect(wxEVT_PAINT, wxPaintEventHandler(wxStaticBox::OnPaint));
|
Connect(wxEVT_PAINT, wxPaintEventHandler(wxStaticBox::OnPaint));
|
||||||
|
#endif
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wxBorder wxStaticBox::GetDefaultBorder() const
|
||||||
|
{
|
||||||
|
return wxBORDER_NONE;
|
||||||
|
}
|
||||||
|
|
||||||
WXDWORD wxStaticBox::MSWGetStyle(long style, WXDWORD *exstyle) const
|
WXDWORD wxStaticBox::MSWGetStyle(long style, WXDWORD *exstyle) const
|
||||||
{
|
{
|
||||||
long styleWin = wxStaticBoxBase::MSWGetStyle(style, exstyle);
|
long styleWin = wxStaticBoxBase::MSWGetStyle(style, exstyle);
|
||||||
|
Reference in New Issue
Block a user