X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/14f355c2b5c71fc7c3d680aea366582d2ac60f7b..ab5ebf521fca1ddff1de556db7c53b25b501cdeb:/src/msw/popupwin.cpp diff --git a/src/msw/popupwin.cpp b/src/msw/popupwin.cpp index f19637098b..aa340cdc9f 100644 --- a/src/msw/popupwin.cpp +++ b/src/msw/popupwin.cpp @@ -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,