]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/popupwin.h
Correction in comment in closing #endif.
[wxWidgets.git] / include / wx / popupwin.h
index e0e5eefca978a5850c69e950347863d4f2c2ca6b..b02debc98f72be12f270c681a9ccbdad7650f052 100644 (file)
     #pragma interface "popupwinbase.h"
 #endif
 
-#include "wx/window.h"
+#include "wx/defs.h"
 
 #if wxUSE_POPUPWIN
+
+#include "wx/window.h"
+
 // ----------------------------------------------------------------------------
 // wxPopupWindow: a special kind of top level window used for popup menus,
 // combobox popups and such.
@@ -106,7 +109,7 @@ public:
 
     // Overridden to grab the input on some plaforms
     virtual bool Show( bool show = true );
-    
+
 protected:
     // common part of all ctors
     void Init();
@@ -121,6 +124,9 @@ protected:
     // remove our event handlers
     void PopHandlers();
 
+    // get alerted when child gets deleted from under us
+    void OnDestroy(wxWindowDestroyEvent& event);
+
     // the child of this popup if any
     wxWindow *m_child;