]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/spinbutt.cpp
removed mpthread and added thread.cpp and tglbutton.cpp
[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;
 
     // basic initialization
     m_windowId = (id == -1) ? NewControlId() : id;
 
-    m_backgroundColour = parent->GetBackgroundColour() ;
-    m_foregroundColour = parent->GetForegroundColour() ;
-
     SetName(name);
 
     int x = pos.x;
     SetName(name);
 
     int x = pos.x;
@@ -199,6 +196,8 @@ bool wxSpinButton::Create(wxWindow *parent,
 
     SubclassWin(m_hWnd);
 
 
     SubclassWin(m_hWnd);
 
+    SetBestSize(size);
+
     return TRUE;
 }
 
     return TRUE;
 }