X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3839f37ed32f788ffe3237a616ef60e93a017e4e..2c7219fea0b102e9e453dd2efe22309ffd0d0264:/include/wx/msw/notebook.h diff --git a/include/wx/msw/notebook.h b/include/wx/msw/notebook.h index 97a3141c54..ef54ae0aec 100644 --- a/include/wx/msw/notebook.h +++ b/include/wx/msw/notebook.h @@ -167,6 +167,8 @@ public: virtual bool DoPhase(int nPhase); #endif // wxUSE_CONSTRAINTS + // Attempts to get colour for UX theme page background + wxColour GetThemeBackgroundColour() const; // implementation only // ------------------- @@ -200,16 +202,14 @@ protected: void AdjustPageSize(wxNotebookPage *page); #if wxUSE_UXTHEME - // this is a slightly ugly function which gets the bitmap of notebook - // background and either returns the colour under the specified window in it - // or creates a brush from it - // - // so if win == NULL, a brush is created and returned - // win != NULL, returns COLORREF of the pixel under its top left corner - WXHANDLE QueryBgBitmap(wxWindow *win = NULL); + // gets the bitmap of notebook background and returns a brush from it + WXHBRUSH QueryBgBitmap(); // creates the brush to be used for drawing the tab control background void UpdateBgBrush(); + + // paint themed children background here + virtual bool MSWPrintChild(wxWindow *win, WXWPARAM wParam, WXLPARAM lParam); #endif // wxUSE_UXTHEME // the current selection (-1 if none)