]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/notebook.cpp
1. some more tests in console
[wxWidgets.git] / src / generic / notebook.cpp
index 926f404c0e853b095ca4961997a1e5442c69b3f5..97019ea950f3b8153a30bdee18dab1de62b23d1c 100644 (file)
@@ -592,12 +592,12 @@ void wxNotebook::ChangePage(int nOldSel, int nSel)
     wxRect clientRect = GetAvailableClientSize();
     pPage->SetSize(clientRect.x, clientRect.y, clientRect.width, clientRect.height);
 
+    Refresh();
+
     pPage->Show(TRUE);
     pPage->Raise();
     pPage->SetFocus();
 
-    Refresh();
-
     m_nSelection = nSel;
 }