Fixed a problem with borders being set wrong sometimes on wxMSW, XP, VC++ 7
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@18355 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -214,6 +214,10 @@ bool wxSpinCtrl::Create(wxWindow *parent,
|
||||
// know whether this is a horizontal or vertical control (we're always
|
||||
// vertical)
|
||||
style |= wxSP_VERTICAL;
|
||||
|
||||
if ( (style & wxBORDER_MASK) == wxBORDER_DEFAULT )
|
||||
style |= wxBORDER_SUNKEN;
|
||||
|
||||
SetWindowStyle(style);
|
||||
|
||||
// calculate the sizes: the size given is the toal size for both controls
|
||||
|
Reference in New Issue
Block a user