X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d34e375c9c54f7fc655de69591dee4d5f8bb7193..f525dc54798efe715b2139d7633bd907f437d3f2:/src/msw/control.cpp diff --git a/src/msw/control.cpp b/src/msw/control.cpp index 7dc54a5114..fe571c7536 100644 --- a/src/msw/control.cpp +++ b/src/msw/control.cpp @@ -358,31 +358,9 @@ WXHBRUSH wxControl::MSWControlColor(WXHDC pDC) ::SetBkMode((HDC)pDC, TRANSPARENT); -#if wxUSE_UXTHEME && wxUSE_NOTEBOOK - if ( wxUxThemeEngine::GetIfActive() ) - { - for ( wxWindow *win = this; win; win = win->GetParent() ) - { - if ( win->IsTopLevel() ) - { - // don't go beyond the first top level parent - break; - } - - wxNotebook *nbook = wxDynamicCast(win, wxNotebook); - if ( nbook ) - { - // return value may be NULL but it is ok: if the first parent - // notebook doesn't use themes, then we don't have to process - // this message at all, so let default processing take place - return nbook->GetThemeBackgroundBrush(pDC, this); - } - } - } -#endif // wxUSE_UXTHEME + hbr = MSWGetBgBrush(pDC); - // let the control deal with background itself - return MSWGetDefaultBgBrush(); + return hbr ? hbr : MSWGetDefaultBgBrush(); } WXHBRUSH wxControl::MSWControlColorDisabled(WXHDC pDC)