]> git.saurik.com Git - wxWidgets.git/blob - include/wx/stubs/checklst.h
Added empty Raise() and Lower() methods for compatibilty.
[wxWidgets.git] / include / wx / stubs / checklst.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: checklst.h
3 // Purpose: wxCheckListBox class - a listbox with checkable items
4 // Note: this is an optional class.
5 // Author: AUTHOR
6 // Modified by:
7 // Created: ??/??/98
8 // RCS-ID: $Id$
9 // Copyright: (c) AUTHOR
10 // Licence: wxWindows licence
11 ///////////////////////////////////////////////////////////////////////////////
12
13 #ifndef _WX_CHECKLST_H_
14 #define _WX_CHECKLST_H_
15
16 #ifdef __GNUG__
17 #pragma interface "checklst.h"
18 #endif
19
20 typedef unsigned int uint;
21
22 class wxCheckListBox : public wxListBox
23 {
24 DECLARE_DYNAMIC_CLASS(wxCheckListBox)
25 public:
26 // ctors
27 wxCheckListBox();
28 wxCheckListBox(wxWindow *parent, wxWindowID id,
29 const wxPoint& pos = wxDefaultPosition,
30 const wxSize& size = wxDefaultSize,
31 int nStrings = 0,
32 const wxString choices[] = NULL,
33 long style = 0,
34 const wxValidator& validator = wxDefaultValidator,
35 const wxString& name = wxListBoxNameStr);
36
37 // items may be checked
38 bool IsChecked(uint uiIndex) const;
39 void Check(uint uiIndex, bool bCheck = TRUE);
40
41 // accessors
42 uint GetItemHeight() const { return m_nItemHeight; }
43
44 DECLARE_EVENT_TABLE()
45 };
46
47 #endif
48 // _WX_CHECKLST_H_