]> git.saurik.com Git - wxWidgets.git/commitdiff
don't use SetWindowStyleFlag() in wxWindowBase::CreateBase() but assign to m_windowSt...
authorVadim Zeitlin <vadim@wxwidgets.org>
Sun, 3 Dec 2006 21:27:52 +0000 (21:27 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sun, 3 Dec 2006 21:27:52 +0000 (21:27 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@43777 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/wincmn.cpp

index 3f63607dca9c49ee41fa6bd2ce1e10f7d03047fe..a2f7a427662b124bf8aa152df45525adf4ae3b84 100644 (file)
@@ -251,8 +251,12 @@ bool wxWindowBase::CreateBase(wxWindowBase *parent,
     // generate a new id if the user doesn't care about it
     m_windowId = id == wxID_ANY ? NewControlId() : id;
 
+    // don't use SetWindowStyleFlag() here, this function should only be called
+    // to change the flag after creation as it tries to reflect the changes in
+    // flags by updating the window dynamically and we don't need this here
+    m_windowStyle = style;
+
     SetName(name);
-    SetWindowStyleFlag(style);
     SetParent(parent);
 
 #if wxUSE_VALIDATORS