]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/button.cpp
fixed to correctly use #if wxUSE_SPINCTRL
[wxWidgets.git] / src / msw / button.cpp
index e369bf170dfe762c98730786a978ed77e7ab182a..490c1154e420892c82a2305f3185aaa59cfc701a 100644 (file)
@@ -128,7 +128,7 @@ wxButton::~wxButton()
 // size management including autosizing
 // ----------------------------------------------------------------------------
 
-wxSize wxButton::DoGetBestSize()
+wxSize wxButton::DoGetBestSize() const
 {
     wxString label = wxGetWindowText(GetHWND());
     int wBtn;
@@ -242,29 +242,6 @@ bool wxButton::MSWCommand(WXUINT param, WXWORD id)
     return processed;
 }
 
-WXHBRUSH wxButton::OnCtlColor(WXHDC pDC,
-                              WXHWND pWnd,
-                              WXUINT nCtlColor,
-                              WXUINT message,
-                              WXWPARAM wParam,
-                              WXLPARAM lParam)
-{
-    const HDC& hdc = (HDC)pDC;
-
-    const wxColour& colBack = GetBackgroundColour();
-    ::SetBkColor(hdc, RGB(colBack.Red(), colBack.Green(), colBack.Blue()));
-
-    const wxColour& colFor = GetForegroundColour();
-    ::SetTextColor(hdc, RGB(colFor.Red(), colFor.Green(), colFor.Blue()));
-
-    ::SetBkMode(hdc, OPAQUE);
-
-    wxBrush *backgroundBrush = wxTheBrushList->FindOrCreateBrush(colBack,
-                                                                 wxSOLID);
-    backgroundBrush->RealizeResource();
-    return (WXHBRUSH)backgroundBrush->GetResourceHandle();
-}
-
 long wxButton::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lParam)
 {
     // make sure that we won't have BS_DEFPUSHBUTTON style any more if the