X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/173e8bbfb381073b502b74a89e8e666a7b293b9d..b4b830ec00c099ae83596fa3fe9d8a4398fd2929:/include/wx/tipwin.h diff --git a/include/wx/tipwin.h b/include/wx/tipwin.h index 37591de446..3a82a5c064 100644 --- a/include/wx/tipwin.h +++ b/include/wx/tipwin.h @@ -17,13 +17,23 @@ #pragma interface "tipwin.h" #endif +#if wxUSE_TIPWINDOW + +#if wxUSE_POPUPWIN +#include "wx/popupwin.h" +#else #include "wx/frame.h" +#endif // ---------------------------------------------------------------------------- // wxTipWindow // ---------------------------------------------------------------------------- +#if wxUSE_POPUPWIN +class WXDLLEXPORT wxTipWindow : public wxPopupTransientWindow +#else class WXDLLEXPORT wxTipWindow : public wxFrame +#endif { friend class wxTipWindowView; public: @@ -36,11 +46,15 @@ public: void SetTipWindowPtr(wxTipWindow** windowPtr) { m_windowPtr = windowPtr; } + void Close(); + protected: // event handlers void OnMouseClick(wxMouseEvent& event); +#if !wxUSE_POPUPWIN void OnActivate(wxActivateEvent& event); void OnKillFocus(wxFocusEvent& event); +#endif private: wxArrayString m_textLines; @@ -50,4 +64,5 @@ private: DECLARE_EVENT_TABLE() }; +#endif // wxUSE_TIPWINDOW #endif // _WX_TIPWIN_H_