From 305561828c603310db7b980dafeba6d5f75b6d13 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 6 Aug 2005 01:11:11 +0000 Subject: [PATCH] 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 --- src/msw/notebook.cpp | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.50.0