added MSWPrintChild() for drawing child background (replaces patch 1108389)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32208 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2005-02-19 20:49:50 +00:00
parent 31059a74bd
commit 07c1932792
4 changed files with 57 additions and 0 deletions

View File

@@ -1002,6 +1002,33 @@ wxColour wxNotebook::MSWGetBgColourForChild(wxWindow *win)
return c == CLR_INVALID ? wxNullColour : wxRGBToColour(c);
}
bool
wxNotebook::MSWPrintChild(wxWindow *win,
WXWPARAM wParam,
WXLPARAM WXUNUSED(lParam))
{
RECT rc;
::GetClientRect(GetHwnd(), &rc);
TabCtrl_AdjustRect(GetHwnd(), true, &rc);
::MapWindowPoints(GetHwnd(), GetHwndOf(win), (POINT *)&rc, 2);
wxUxThemeHandle theme(win, L"TAB");
if ( theme )
{
wxUxThemeEngine::Get()->DrawThemeBackground
(
theme,
(WXHDC)wParam,
9 /* TABP_PANE */,
0,
&rc,
NULL
);
}
return true;
}
#endif // wxUSE_UXTHEME
// Windows only: attempts to get colour for UX theme page background