1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: wx/dfb/popupwin.h
3 // Purpose: wxPopupWindow class for wxDFB
4 // Author: Vaclav Slavik
7 // Copyright: (c) 2006 TT-Solutions
8 // Licence: wxWindows licence
9 ///////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_DFB_POPUPWIN_H_
12 #define _WX_DFB_POPUPWIN_H_
14 // ----------------------------------------------------------------------------
16 // ----------------------------------------------------------------------------
18 class WXDLLIMPEXP_CORE wxPopupWindow
: public wxPopupWindowBase
23 wxPopupWindow(wxWindow
*parent
, int flags
= wxBORDER_NONE
)
24 { Create(parent
, flags
); }
26 bool Create(wxWindow
*parent
, int flags
= wxBORDER_NONE
)
28 if ( !wxPopupWindowBase::Create(parent
) )
31 return wxNonOwnedWindow::Create
35 // DFB windows must have valid pos & size:
36 wxPoint(0, 0), wxSize(1, 1),
37 (flags
& wxBORDER_MASK
) | wxPOPUP_WINDOW
41 DECLARE_DYNAMIC_CLASS(wxPopupWindow
)
44 #endif // _WX_DFB_POPUPWIN_H_