prevent the parent window from losing activation when a popup is shown

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15662 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2002-05-25 13:02:58 +00:00
parent d45bc43695
commit 7e25f59e48
7 changed files with 119 additions and 25 deletions

View File

@@ -30,11 +30,26 @@ public:
bool Create(wxWindow *parent, int flags = wxBORDER_NONE);
// implementation only from now on
// -------------------------------
// override Show() to prevent wxPopupWindow from being activated
virtual bool Show(bool show = TRUE);
// find a shown popup window with the given window as parent, return NULL
// if none
static wxPopupWindow *FindPopupFor(wxWindow *win);
protected:
// popups handle the position like wxTopLevelWindow, not wxWindow
virtual void DoGetPosition(int *x, int *y) const;
// return the style to be used for the popup windows
virtual WXDWORD MSWGetStyle(long flags, WXDWORD *exstyle) const;
// the list of all currently shown popup windows used by FindPopupFor()
static wxWindowList ms_shownPopups;
DECLARE_DYNAMIC_CLASS(wxPopupWindow)
};