- return GetThemeBackgroundColour();
-}
-
-bool
-wxNotebook::MSWPrintChild(wxWindow *win,
- WXWPARAM wParam,
- WXLPARAM WXUNUSED(lParam))
-{
- // Don't paint the theme for the child if we have a solid background
- if ( m_hasBgCol ||
- wxSystemOptions::IsFalse(wxT("msw.notebook.themed-background")) ||
- HasFlag(wxNB_NOPAGETHEME) )
- {
- return false;
- }
-
-
- RECT rc;
- ::GetClientRect(GetHwnd(), &rc);
-
- // adjust position
- TabCtrl_AdjustRect(GetHwnd(), false, &rc);
-
- wxUxThemeHandle theme(win, L"TAB");
- if ( theme )
- {
- // map from this client to win client coords
- ::MapWindowPoints(GetHwnd(), GetHwndOf(win), (POINT *)&rc, 2);
-
- AdjustRectForThemeBg(rc);
- wxUxThemeEngine::Get()->DrawThemeBackground
- (
- theme,
- (WXHDC)wParam,
- 9 /* TABP_PANE */,
- 0,
- &rc,
- NULL
- );
- }
-
- return true;