1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/dfb/popupwin.h
3 // Purpose: wxPopupWindow class for wxDFB
4 // Author: Vaclav Slavik
6 // Copyright: (c) 2006 TT-Solutions
7 // Licence: wxWindows licence
8 ///////////////////////////////////////////////////////////////////////////////
10 #ifndef _WX_DFB_POPUPWIN_H_
11 #define _WX_DFB_POPUPWIN_H_
13 // ----------------------------------------------------------------------------
15 // ----------------------------------------------------------------------------
17 class WXDLLIMPEXP_CORE wxPopupWindow
: public wxPopupWindowBase
22 wxPopupWindow(wxWindow
*parent
, int flags
= wxBORDER_NONE
)
23 { Create(parent
, flags
); }
25 bool Create(wxWindow
*parent
, int flags
= wxBORDER_NONE
)
27 if ( !wxPopupWindowBase::Create(parent
) )
30 return wxNonOwnedWindow::Create
34 // DFB windows must have valid pos & size:
35 wxPoint(0, 0), wxSize(1, 1),
36 (flags
& wxBORDER_MASK
) | wxPOPUP_WINDOW
40 DECLARE_DYNAMIC_CLASS(wxPopupWindow
)
43 #endif // _WX_DFB_POPUPWIN_H_