]> git.saurik.com Git - wxWidgets.git/commitdiff
don't show the window initially if m_isShown is false, i.e. if Hide() had been called...
authorVadim Zeitlin <vadim@wxwidgets.org>
Wed, 24 Mar 2004 14:21:17 +0000 (14:21 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Wed, 24 Mar 2004 14:21:17 +0000 (14:21 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26319 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/wincmn.cpp
src/msw/popupwin.cpp

index 1f80f28ee94c9bc5797ae181dfca984f6dbc53c9..aa90c82cbd89c9aa661b2da311a47273d58fff30 100644 (file)
@@ -121,8 +121,8 @@ wxWindowBase::wxWindowBase()
     m_maxWidth =
     m_maxHeight = -1;
 
-    // window is created enabled but it's not visible yet
-    m_isShown = false;
+    // window are created enabled and visible by default
+    m_isShown =
     m_isEnabled = true;
 
     // the default event handler is just this window
index fbe5ad21fbcc156a45dda4da88186c7227dc0bc6..aa340cdc9f8ec9a81db917d6f08737fb6c02d94b 100644 (file)
@@ -46,6 +46,9 @@ IMPLEMENT_DYNAMIC_CLASS(wxPopupWindow, wxWindow)
 
 bool wxPopupWindow::Create(wxWindow *parent, int flags)
 {
+    // popup windows are created hidden by default
+    Hide();
+
     return wxPopupWindowBase::Create(parent) &&
                wxWindow::Create(parent, -1,
                                 wxDefaultPosition, wxDefaultSize,