// headers
// ----------------------------------------------------------------------------
-#ifdef __GNUG__
+#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
#pragma implementation "popup.h"
#endif
#endif
#ifndef WX_PRECOMP
+#include "wx/defs.h"
#endif //WX_PRECOMP
#if wxUSE_POPUPWIN
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,