X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/655719367ac5e131d9642e5783f3ecf64d1a3385..a2c6537e60ab5564d6bf33bb14ac8c42744aa93c:/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; }