]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/spinbutt.cpp
adaptions to m_peer methods
[wxWidgets.git] / src / msw / spinbutt.cpp
index d49253743b649e4e25ba19913c6a3920b10e4740..98d967b2ffbd36614470ec7e9ac49e21c7a1fb8a 100644 (file)
@@ -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;
 }