]>
git.saurik.com Git - wxWidgets.git/blob - include/wx/mac/checklst.h
1 ///////////////////////////////////////////////////////////////////////////////
3 // Purpose: wxCheckListBox class - a listbox with checkable items
4 // Note: this is an optional class.
9 // Copyright: (c) AUTHOR
10 // Licence: wxWindows licence
11 ///////////////////////////////////////////////////////////////////////////////
13 #ifndef _WX_CHECKLST_H_
14 #define _WX_CHECKLST_H_
17 #pragma interface "checklst.h"
20 #include "wx/listbox.h"
23 typedef unsigned int size_t;
26 class wxCheckListBox
: public wxListBox
28 DECLARE_DYNAMIC_CLASS(wxCheckListBox
)
32 wxCheckListBox(wxWindow
*parent
, wxWindowID id
,
33 const wxPoint
& pos
= wxDefaultPosition
,
34 const wxSize
& size
= wxDefaultSize
,
36 const wxString choices
[] = NULL
,
38 const wxValidator
& validator
= wxDefaultValidator
,
39 const wxString
& name
= wxListBoxNameStr
);
41 // items may be checked
42 bool IsChecked(size_t uiIndex
) const;
43 void Check(size_t uiIndex
, bool bCheck
= TRUE
);