From: Jamie Gadd Date: Thu, 5 Oct 2006 21:34:54 +0000 (+0000) Subject: Need to update the bg brush when the first page is added. X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ebd9ec2931d9d724b57724441c30d62399aca1c1 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 --- 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);