]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/notebook.cpp
Unicode build fix
[wxWidgets.git] / src / msw / notebook.cpp
index fdef3d8cbfa13158ecb733387cb6de20fe17836b..6f474aed5fa9350ef4224f8513fcc6bf96f616ec 100644 (file)
@@ -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
@@ -941,7 +946,7 @@ void wxNotebook::OnSize(wxSizeEvent& event)
         RefreshRect(wxRect(0, rc.top, rc.left, height), false);
         RefreshRect(wxRect(0, rc.bottom, widthNbook, heightNbook - rc.bottom),
                     false);
-        RefreshRect(wxRect(rc.right, rc.top, widthNbook - rc.bottom, height),
+        RefreshRect(wxRect(rc.right, rc.top, widthNbook - rc.right, height),
                     false);
     }