WXHBRUSH wxControl::MSWControlColor(WXHDC pDC, WXHWND hWnd) { if ( HasTransparentBackground() ) ::SetBkMode((HDC)pDC, TRANSPARENT); // don't pass any background colour to DoMSWControlColor(), our own // background colour will be used by it only if it is set, otherwise the // defaults will be used return DoMSWControlColor(pDC, wxColour(), hWnd); }
WXHBRUSH wxControl::MSWControlColor(WXHDC pDC, WXHWND hWnd) { wxColour colBg; if ( HasTransparentBackground() ) ::SetBkMode((HDC)pDC, TRANSPARENT); else // if the control is opaque it shouldn't use the parents background colBg = GetBackgroundColour(); return DoMSWControlColor(pDC, colBg, hWnd); }
WXHBRUSH wxControl::MSWControlColorDisabled(WXHDC pDC) { return DoMSWControlColor(pDC, wxSystemSettings::GetColour(wxSYS_COLOUR_BTNFACE), GetHWND()); }