]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/notebook.cpp
Need to update the bg brush when the first page is added.
[wxWidgets.git] / src / msw / notebook.cpp
index 571f6506fc883510cc6315058c40f64a69e95057..cd19ed2b0d0e419e9282cab664a5899257498d8a 100644 (file)
@@ -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);