]>
Commit | Line | Data |
---|---|---|
251b80c4 KB |
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 | |
251b80c4 | 7 | // Copyright: (c) 2001 Vadim Zeitlin <zeitlin@dptmaths.ens-cachan.fr> |
65571936 | 8 | // Licence: wxWindows licence |
251b80c4 KB |
9 | /////////////////////////////////////////////////////////////////////////////// |
10 | ||
11 | #ifndef _WX_PM_POPUPWIN_H_ | |
12 | #define _WX_PM_POPUPWIN_H_ | |
13 | ||
14 | // ---------------------------------------------------------------------------- | |
15 | // wxPopupWindow | |
16 | // ---------------------------------------------------------------------------- | |
17 | ||
53a2db12 | 18 | class WXDLLIMPEXP_CORE wxPopupWindow : public wxPopupWindowBase |
251b80c4 KB |
19 | { |
20 | public: | |
21 | wxPopupWindow() { } | |
22 | ||
47df2b8c DW |
23 | wxPopupWindow( wxWindow* pParent |
24 | ,int nFlags | |
25 | ) | |
26 | { (void)Create(pParent, nFlags); } | |
251b80c4 | 27 | |
430974f8 DW |
28 | bool Create( wxWindow* pParent |
29 | ,int nFlags = wxBORDER_NONE | |
30 | ); | |
6ed98c6a DW |
31 | // |
32 | // Implementation only from now on | |
33 | // ------------------------------- | |
34 | // | |
430974f8 | 35 | protected: |
47df2b8c | 36 | |
430974f8 DW |
37 | virtual void DoGetPosition( int* pnX |
38 | ,int* pny | |
39 | ) const; | |
40 | ||
41 | virtual WXDWORD OS2GetStyle( long lFlags | |
42 | ,WXDWORD* dwExstyle | |
43 | ) const; | |
47df2b8c DW |
44 | // |
45 | // Get the HWND to be used as parent of this window with CreateWindow() | |
46 | // | |
47 | virtual WXHWND OS2GetParent(void) const; | |
48 | ||
6ed98c6a DW |
49 | // |
50 | // The list of all currently shown popup windows used by FindPopupFor() | |
51 | // | |
52 | static wxWindowList m_svShownPopups; | |
53 | ||
430974f8 DW |
54 | DECLARE_DYNAMIC_CLASS(wxPopupWindow) |
55 | }; // end of CLASS wxPopupWindow | |
251b80c4 KB |
56 | |
57 | #endif // _WX_PM_POPUPWIN_H_ |