X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/537a0880d225ab023024f6f5fc8955666b7641b8..82ceade76a4913f9c6fd8dfda1fb291bf08e1d89:/include/wx/popupwin.h diff --git a/include/wx/popupwin.h b/include/wx/popupwin.h index e0e5eefca9..2915205ed8 100644 --- a/include/wx/popupwin.h +++ b/include/wx/popupwin.h @@ -16,9 +16,12 @@ #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,15 @@ protected: // remove our event handlers void PopHandlers(); + // get alerted when child gets deleted from under us + void OnDestroy(wxWindowDestroyEvent& event); + + void OnEnter(wxMouseEvent& event); + void OnLeave(wxMouseEvent& event); + void OnLeftDown(wxMouseEvent& event); + void OnChildEnter(wxMouseEvent& event); + void OnChildLeave(wxMouseEvent& event); + // the child of this popup if any wxWindow *m_child; @@ -135,6 +147,7 @@ protected: wxPopupWindowHandler *m_handlerPopup; wxPopupFocusHandler *m_handlerFocus; + DECLARE_EVENT_TABLE() DECLARE_DYNAMIC_CLASS(wxPopupTransientWindow) DECLARE_NO_COPY_CLASS(wxPopupTransientWindow) };