X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f68586e51b20dccee3fd5645aeaca7cc8ff298c2..f09caa575835cffdac834c021a6e1cef687cf170:/src/msw/button.cpp diff --git a/src/msw/button.cpp b/src/msw/button.cpp index 4e113f40a1..490c1154e4 100644 --- a/src/msw/button.cpp +++ b/src/msw/button.cpp @@ -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