WXHWND hwnd;
UnpackCtlColor(wParam, lParam, &hdc, &hwnd);
- processed = HandleCtlColor(&rc.hBrush,
- (WXHDC)hdc,
- (WXHWND)hwnd,
- message,
- wParam,
- lParam);
+ processed = HandleCtlColor(&rc.hBrush, (WXHDC)hdc, (WXHWND)hwnd);
}
break;
#endif // !__WXMICROWIN__
#ifndef __WXMICROWIN__
-bool wxWindowMSW::HandleCtlColor(WXHBRUSH *brush,
- WXHDC pDC,
- WXHWND pWnd,
- WXUINT message,
- WXWPARAM wParam,
- WXLPARAM lParam)
+bool wxWindowMSW::HandleCtlColor(WXHBRUSH *brush, WXHDC pDC, WXHWND pWnd)
{
#if wxUSE_CONTROLS
- wxControl *item = (wxControl *)FindItemByHWND(pWnd, true);
+ wxWindow *item = FindItemByHWND(pWnd, true);
if ( item )
- *brush = item->OnCtlColor(pDC, pWnd, 0, message, wParam, lParam);
+ *brush = item->MSWControlColor(pDC);
else
#endif // wxUSE_CONTROLS
*brush = NULL;
#endif // __WXMICROWIN__
-// Define for each class of dialog and control
-WXHBRUSH wxWindowMSW::OnCtlColor(WXHDC hDC,
- WXHWND WXUNUSED(hWnd),
- WXUINT WXUNUSED(nCtlColor),
- WXUINT WXUNUSED(message),
- WXWPARAM WXUNUSED(wParam),
- WXLPARAM WXUNUSED(lParam))
-{
- return MSWControlColor(hDC);
-}
-
WXHBRUSH wxWindowMSW::MSWControlColor(WXHDC WXUNUSED(hDC))
{
return (WXHBRUSH)0;
break;
case wxBG_STYLE_SYSTEM:
-#if wxUSE_NOTEBOOK && wxUSE_UXTHEME
+#if wxUSE_NOTEBOOK && wxUSE_UXTHEME && !defined(__WXUNIVERSAL__)
// automatically apply the tab control theme background to any
// child panels to have the same look as the native property sheet
// dialogs
+ if ( !IsOfStandardClass() )
{
for ( wxWindow *win = this; win; win = win->GetParent() )
{