From: Vadim Zeitlin Date: Sat, 6 Aug 2005 01:11:11 +0000 (+0000) Subject: initialize backing store bitmap in Create(), notebook doesn't always get a size event... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/305561828c603310db7b980dafeba6d5f75b6d13?ds=inline initialize backing store bitmap in Create(), notebook doesn't always get a size event immediately after creation git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35121 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/notebook.cpp b/src/msw/notebook.cpp index 46abba6daa..6f474aed5f 100644 --- a/src/msw/notebook.cpp +++ b/src/msw/notebook.cpp @@ -345,6 +345,11 @@ bool wxNotebook::Create(wxWindow *parent, { SetBackgroundColour(GetThemeBackgroundColour()); } + else // use themed background by default + { + // create backing store + UpdateBgBrush(); + } #endif // wxUSE_UXTHEME // Undocumented hack to get flat notebook style