1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/os2/popupwin.h
3 // Purpose: wxPopupWindow class for wxPM
4 // Author: Vadim Zeitlin
7 // Copyright: (c) 2001 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_PM_POPUPWIN_H_
12 #define _WX_PM_POPUPWIN_H_
14 // ----------------------------------------------------------------------------
16 // ----------------------------------------------------------------------------
18 class WXDLLIMPEXP_CORE wxPopupWindow
: public wxPopupWindowBase
23 wxPopupWindow( wxWindow
* pParent
26 { (void)Create(pParent
, nFlags
); }
28 bool Create( wxWindow
* pParent
29 ,int nFlags
= wxBORDER_NONE
32 // Implementation only from now on
33 // -------------------------------
37 virtual void DoGetPosition( int* pnX
41 virtual WXDWORD
OS2GetStyle( long lFlags
45 // Get the HWND to be used as parent of this window with CreateWindow()
47 virtual WXHWND
OS2GetParent(void) const;
50 // The list of all currently shown popup windows used by FindPopupFor()
52 static wxWindowList m_svShownPopups
;
54 DECLARE_DYNAMIC_CLASS(wxPopupWindow
)
55 }; // end of CLASS wxPopupWindow
57 #endif // _WX_PM_POPUPWIN_H_