From ebd9ec2931d9d724b57724441c30d62399aca1c1 Mon Sep 17 00:00:00 2001 From: Jamie Gadd Date: Thu, 5 Oct 2006 21:34:54 +0000 Subject: [PATCH] Need to update the bg brush when the first page is added. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41642 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/notebook.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/msw/notebook.cpp b/src/msw/notebook.cpp index 571f6506fc..cd19ed2b0d 100644 --- a/src/msw/notebook.cpp +++ b/src/msw/notebook.cpp @@ -761,6 +761,13 @@ bool wxNotebook::InsertPage(size_t nPage, return false; } + // need to update the bg brush when the first page is added + // so the first panel gets the correct themed background + if ( m_pages.empty() ) + { + UpdateBgBrush(); + } + // succeeded: save the pointer to the page m_pages.Insert(pPage, nPage); -- 2.50.0