]> git.saurik.com Git - wxWidgets.git/blobdiff - samples/widgets/static.cpp
Fix return value of wxGenericTreeCtrl::FindItem().
[wxWidgets.git] / samples / widgets / static.cpp
index 65dd5e4c6185d8e440b8035fced9c92b17a937c6..58a2d0610ecefd34201c8017e39f2e13b7ab91f1 100644 (file)
@@ -41,6 +41,7 @@
 
 #include "wx/statline.h"
 #include "wx/generic/stattextg.h"
+#include "wx/wupdlock.h"
 
 #include "widgets.h"
 #include "icons/statbox.xpm"
@@ -376,6 +377,8 @@ void StaticWidgetsPage::Reset()
 
 void StaticWidgetsPage::CreateStatic()
 {
+    wxWindowUpdateLocker lock(this);
+
     bool isVert = m_chkVert->GetValue();
 
     if ( m_sizerStatBox )