]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/msw/choice.h
1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxChoice class
4 // Author: Julian Smart
5 // Modified by: Vadim Zeitlin to derive from wxChoiceBase
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
16 #pragma interface "choice.h"
19 // ----------------------------------------------------------------------------
21 // ----------------------------------------------------------------------------
23 class WXDLLEXPORT wxChoice
: public wxChoiceBase
25 DECLARE_DYNAMIC_CLASS(wxChoice
)
31 wxChoice(wxWindow
*parent
,
33 const wxPoint
& pos
= wxDefaultPosition
,
34 const wxSize
& size
= wxDefaultSize
,
35 int n
= 0, const wxString choices
[] = NULL
,
37 const wxValidator
& validator
= wxDefaultValidator
,
38 const wxString
& name
= wxChoiceNameStr
)
40 Create(parent
, id
, pos
, size
, n
, choices
, style
, validator
, name
);
43 bool Create(wxWindow
*parent
,
45 const wxPoint
& pos
= wxDefaultPosition
,
46 const wxSize
& size
= wxDefaultSize
,
47 int n
= 0, const wxString choices
[] = NULL
,
49 const wxValidator
& validator
= wxDefaultValidator
,
50 const wxString
& name
= wxChoiceNameStr
);
52 // implement base class pure virtuals
53 virtual void DoAppend(const wxString
& item
);
54 virtual void Delete(int n
);
57 virtual int GetCount() const;
58 virtual int GetSelection() const;
59 virtual void SetSelection(int n
);
61 virtual int FindString(const wxString
& s
) const;
62 virtual wxString
GetString(int n
) const;
65 virtual bool MSWCommand(WXUINT param
, WXWORD id
);
66 long MSWWindowProc(WXUINT nMsg
, WXWPARAM wParam
, WXLPARAM lParam
);
69 virtual void DoSetClientData( int n
, void* clientData
);
70 virtual void* DoGetClientData( int n
) const;
71 virtual void DoSetClientObject( int n
, wxClientData
* clientData
);
72 virtual wxClientData
* DoGetClientObject( int n
) const;
75 virtual wxSize
DoGetBestSize();
76 virtual void DoSetSize(int x
, int y
,
77 int width
, int height
,
78 int sizeFlags
= wxSIZE_AUTO
);
81 #endif // _WX_CHOICE_H_