]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/combo.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/msw/combo.h
3 // Purpose: wxComboCtrl 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 wxComboCtrl, so make sure you
17 // use it in all native wxComboCtrls.
21 // ----------------------------------------------------------------------------
23 // ----------------------------------------------------------------------------
25 // Define this only if native implementation includes all features
26 #define wxCOMBOCONTROL_FULLY_FEATURED
28 extern WXDLLIMPEXP_DATA_CORE(const wxChar
) wxComboBoxNameStr
[];
30 class WXDLLEXPORT wxComboCtrl
: public wxComboCtrlBase
34 wxComboCtrl() : wxComboCtrlBase() { Init(); }
36 wxComboCtrl(wxWindow
*parent
,
37 wxWindowID id
= wxID_ANY
,
38 const wxString
& value
= wxEmptyString
,
39 const wxPoint
& pos
= wxDefaultPosition
,
40 const wxSize
& size
= wxDefaultSize
,
42 const wxValidator
& validator
= wxDefaultValidator
,
43 const wxString
& name
= wxComboBoxNameStr
)
48 (void)Create(parent
, id
, value
, pos
, size
, style
, validator
, name
);
51 bool Create(wxWindow
*parent
,
52 wxWindowID id
= wxID_ANY
,
53 const wxString
& value
= wxEmptyString
,
54 const wxPoint
& pos
= wxDefaultPosition
,
55 const wxSize
& size
= wxDefaultSize
,
57 const wxValidator
& validator
= wxDefaultValidator
,
58 const wxString
& name
= wxComboBoxNameStr
);
60 virtual ~wxComboCtrl();
62 virtual void DrawFocusBackground( wxDC
& dc
, const wxRect
& rect
, int flags
) const;
63 virtual bool IsKeyPopupToggle(const wxKeyEvent
& event
) const;
65 static int GetFeatures() { return wxComboCtrlFeatures::All
; }
70 virtual void OnResize();
71 virtual wxCoord
GetNativeTextIndent() const;
72 virtual void OnThemeChange();
75 void OnPaintEvent( wxPaintEvent
& event
);
76 void OnMouseEvent( wxMouseEvent
& event
);
83 DECLARE_DYNAMIC_CLASS(wxComboCtrl
)
87 #endif // wxUSE_COMBOCTRL
89 // _WX_COMBOCONTROL_H_