X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3a6b6a98895b14b5edf1aab8d258e306ab764977..e0dec8753abaf97e006ea1185bfb6775b28df0a8:/samples/widgets/static.cpp diff --git a/samples/widgets/static.cpp b/samples/widgets/static.cpp index 65dd5e4c61..58a2d0610e 100644 --- a/samples/widgets/static.cpp +++ b/samples/widgets/static.cpp @@ -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 )