]> git.saurik.com Git - wxWidgets.git/blob - include/wx/os2/popupwin.h
Destroy the wxDialog::ShowWindowModalThenDo() functor a.s.a.p.
[wxWidgets.git] / include / wx / os2 / popupwin.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/os2/popupwin.h
3 // Purpose: wxPopupWindow class for wxPM
4 // Author: Vadim Zeitlin
5 // Modified by:
6 // Created: 06.01.01
7 // Copyright: (c) 2001 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr>
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_PM_POPUPWIN_H_
12 #define _WX_PM_POPUPWIN_H_
13
14 // ----------------------------------------------------------------------------
15 // wxPopupWindow
16 // ----------------------------------------------------------------------------
17
18 class WXDLLIMPEXP_CORE wxPopupWindow : public wxPopupWindowBase
19 {
20 public:
21 wxPopupWindow() { }
22
23 wxPopupWindow( wxWindow* pParent
24 ,int nFlags
25 )
26 { (void)Create(pParent, nFlags); }
27
28 bool Create( wxWindow* pParent
29 ,int nFlags = wxBORDER_NONE
30 );
31 //
32 // Implementation only from now on
33 // -------------------------------
34 //
35 protected:
36
37 virtual void DoGetPosition( int* pnX
38 ,int* pny
39 ) const;
40
41 virtual WXDWORD OS2GetStyle( long lFlags
42 ,WXDWORD* dwExstyle
43 ) const;
44 //
45 // Get the HWND to be used as parent of this window with CreateWindow()
46 //
47 virtual WXHWND OS2GetParent(void) const;
48
49 //
50 // The list of all currently shown popup windows used by FindPopupFor()
51 //
52 static wxWindowList m_svShownPopups;
53
54 DECLARE_DYNAMIC_CLASS(wxPopupWindow)
55 }; // end of CLASS wxPopupWindow
56
57 #endif // _WX_PM_POPUPWIN_H_