]> git.saurik.com Git - wxWidgets.git/blobdiff - src/msw/popupwin.cpp
Use wxVisualAttributes (partially #if'd out until tested further.)
[wxWidgets.git] / src / msw / popupwin.cpp
index f19637098bc82e7eadd9acdfb109607640298586..aa340cdc9f8ec9a81db917d6f08737fb6c02d94b 100644 (file)
@@ -29,6 +29,7 @@
 #endif
 
 #ifndef WX_PRECOMP
+#include "wx/defs.h"
 #endif //WX_PRECOMP
 
 #if wxUSE_POPUPWIN
@@ -45,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,