]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/popupwin.cpp
Better alphabetized the event handler macros
[wxWidgets.git] / src / msw / popupwin.cpp
index fbe5ad21fbcc156a45dda4da88186c7227dc0bc6..dcd2272474e8ed0f312bc21f9a8d8bfa9c42e5d0 100644 (file)
@@ -46,8 +46,11 @@ 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,
+               wxWindow::Create(parent, wxID_ANY,
                                 wxDefaultPosition, wxDefaultSize,
                                 flags | wxPOPUP_WINDOW);
 }
@@ -97,7 +100,7 @@ WXHWND wxPopupWindow::MSWGetParent() const
 bool wxPopupWindow::Show(bool show)
 {
     if ( !wxWindowMSW::Show(show) )
-        return FALSE;
+        return false;
 
     if ( show )
     {
@@ -108,7 +111,7 @@ bool wxPopupWindow::Show(bool show)
         }
     }
 
-    return TRUE;
+    return true;
 }
 
 #endif // #if wxUSE_POPUPWIN