X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/655719367ac5e131d9642e5783f3ecf64d1a3385..f8405d6e6fc2a361d9710dfdaea0b158952803aa:/src/msw/spinbutt.cpp diff --git a/src/msw/spinbutt.cpp b/src/msw/spinbutt.cpp index d49253743b..98d967b2ff 100644 --- a/src/msw/spinbutt.cpp +++ b/src/msw/spinbutt.cpp @@ -129,9 +129,6 @@ bool wxSpinButton::Create(wxWindow *parent, // basic initialization m_windowId = (id == -1) ? NewControlId() : id; - m_backgroundColour = parent->GetBackgroundColour() ; - m_foregroundColour = parent->GetForegroundColour() ; - SetName(name); int x = pos.x; @@ -199,6 +196,8 @@ bool wxSpinButton::Create(wxWindow *parent, SubclassWin(m_hWnd); + SetBestSize(size); + return TRUE; }