]>
Commit | Line | Data |
---|---|---|
544c782d VS |
1 | /////////////////////////////////////////////////////////////////////////////// |
2 | // Name: wx/mgl/popupwin.h | |
3 | // Purpose: wxPopupWindow class for wxMGL | |
4 | // Author: Vadim Zeitlin | |
5 | // Created: 06.01.01 | |
6 | // RCS-ID: $Id$ | |
52750c2e | 7 | // Copyright: (c) 2001-2002 SciTech Software, Inc. (www.scitechsoft.com) |
544c782d VS |
8 | // Licence: wxWindows licence |
9 | /////////////////////////////////////////////////////////////////////////////// | |
10 | ||
11 | #ifndef _WX_POPUPWIN_H_ | |
12 | #define _WX_POPUPWIN_H_ | |
13 | ||
14 | // ---------------------------------------------------------------------------- | |
15 | // wxPopupWindow | |
16 | // ---------------------------------------------------------------------------- | |
17 | ||
18 | class WXDLLEXPORT wxPopupWindow : public wxPopupWindowBase | |
19 | { | |
20 | public: | |
21 | wxPopupWindow() { } | |
22 | ||
758bce95 RD |
23 | wxPopupWindow(wxWindow *parent, int flags = wxBORDER_NONE) |
24 | { (void)Create(parent, flags); } | |
544c782d VS |
25 | |
26 | bool Create(wxWindow *parent, int flags = wxBORDER_NONE) | |
27 | { | |
28 | return wxPopupWindowBase::Create(parent) && | |
29 | wxWindow::Create(parent, -1, | |
30 | wxDefaultPosition, wxDefaultSize, | |
7cdbf02c | 31 | (flags & wxBORDER_MASK) | wxPOPUP_WINDOW); |
544c782d | 32 | } |
159960c0 VS |
33 | |
34 | protected: | |
35 | DECLARE_DYNAMIC_CLASS(wxPopupWindow) | |
544c782d VS |
36 | }; |
37 | ||
38 | #endif // _WX_POPUPWIN_H_ | |
39 |