]> git.saurik.com Git - wxWidgets.git/commitdiff
Move m_isShown = false; into base class constructor
authorDavid Elliott <dfe@tgwbd.org>
Thu, 25 Mar 2004 20:19:36 +0000 (20:19 +0000)
committerDavid Elliott <dfe@tgwbd.org>
Thu, 25 Mar 2004 20:19:36 +0000 (20:19 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26340 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/toplvcmn.cpp
src/msw/toplevel.cpp

index aa0d96d70c7962cb9fbab2093e94ff3351909bf2..6ff702eff319dbc9e5424573295809113f9740e3 100644 (file)
@@ -54,6 +54,8 @@ IMPLEMENT_DYNAMIC_CLASS(wxTopLevelWindow, wxWindow)
 
 wxTopLevelWindowBase::wxTopLevelWindowBase()
 {
+    // Unlike windows, top level windows are created hidden by default.
+    m_isShown = false;
 }
 
 wxTopLevelWindowBase::~wxTopLevelWindowBase()
index eaa89292adcc4f25c5e26a2d530d93398e0768b2..3c80ac8f540b58d8b9fb3a1aeefd7baaefeb3cc4 100644 (file)
@@ -139,9 +139,6 @@ void wxTopLevelWindowMSW::Init()
     m_iconized =
     m_maximizeOnShow = FALSE;
 
-    // unlike (almost?) all other windows, frames are created hidden
-    m_isShown = FALSE;
-
     // Data to save/restore when calling ShowFullScreen
     m_fsStyle = 0;
     m_fsOldWindowStyle = 0;