1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/combo.h
3 // Purpose: wxComboControl class
4 // Author: Jaakko Salli
6 // Created: Apr-30-2006
8 // Copyright: (c) Jaakko Salli
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
12 #ifndef _WX_COMBOCONTROL_H_
13 #define _WX_COMBOCONTROL_H_
15 // NB: Definition of _WX_COMBOCONTROL_H_ is used in wx/generic/combo.h to
16 // determine whether there is native wxComboControl, so make sure you
17 // use it in all native wxComboControls.
19 #if wxUSE_COMBOCONTROL
21 // ----------------------------------------------------------------------------
22 // Native wxComboControl
23 // ----------------------------------------------------------------------------
25 // Define this only if native implementation includes all features
26 #define wxCOMBOCONTROL_FULLY_FEATURED
28 class WXDLLEXPORT wxComboControl
: public wxComboControlBase
32 wxComboControl() : wxComboControlBase() { Init(); }
34 wxComboControl(wxWindow
*parent
,
35 wxWindowID id
= wxID_ANY
,
36 const wxString
& value
= wxEmptyString
,
37 const wxPoint
& pos
= wxDefaultPosition
,
38 const wxSize
& size
= wxDefaultSize
,
40 const wxValidator
& validator
= wxDefaultValidator
,
41 const wxString
& name
= wxComboBoxNameStr
)
42 : wxComboControlBase()
46 (void)Create(parent
, id
, value
, pos
, size
, style
, validator
, name
);
49 bool Create(wxWindow
*parent
,
50 wxWindowID id
= wxID_ANY
,
51 const wxString
& value
= wxEmptyString
,
52 const wxPoint
& pos
= wxDefaultPosition
,
53 const wxSize
& size
= wxDefaultSize
,
55 const wxValidator
& validator
= wxDefaultValidator
,
56 const wxString
& name
= wxComboBoxNameStr
);
58 virtual ~wxComboControl();
60 virtual void DrawFocusBackground( wxDC
& dc
, const wxRect
& rect
, int flags
);
62 static int GetFeatures() { return wxComboControlFeatures::All
; }
67 virtual void OnResize();
68 virtual wxCoord
GetNativeTextIndent() const;
69 virtual void OnThemeChange();
72 void OnPaintEvent( wxPaintEvent
& event
);
73 void OnMouseEvent( wxMouseEvent
& event
);
80 DECLARE_DYNAMIC_CLASS(wxComboControl
)
84 #endif // wxUSE_COMBOCONTROL
86 // _WX_COMBOCONTROL_H_