X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/bd507486e07b742bb7acb118811efd60ee027859..f014d4bf3e18198c273b3c119ad1a08d46d12c82:/include/wx/popupwin.h?ds=sidebyside diff --git a/include/wx/popupwin.h b/include/wx/popupwin.h index 18ca40e2f3..9cd390d2fa 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. @@ -46,7 +49,7 @@ public: virtual void Position(const wxPoint& ptOrigin, const wxSize& size); - virtual bool IsTopLevel() const { return TRUE; } + virtual bool IsTopLevel() const { return true; } DECLARE_NO_COPY_CLASS(wxPopupWindowBase) }; @@ -97,13 +100,16 @@ public: // // VZ: where is this used?? virtual bool CanDismiss() - { return TRUE; } + { return true; } - // called when a mouse is pressed while the popup is shown: return TRUE + // called when a mouse is pressed while the popup is shown: return true // from here to prevent its normal processing by the popup (which consists // in dismissing it if the mouse is cilcked outside it) virtual bool ProcessLeftDown(wxMouseEvent& event); + // Overridden to grab the input on some plaforms + virtual bool Show( bool show = true ); + protected: // common part of all ctors void Init();