#pragma interface "checklst.h"
#endif
-typedef unsigned int uint;
+#include "wx/listbox.h"
-class wxCheckListBoxItem; // fwd decl, define in checklst.cpp
+typedef unsigned int size_t;
class wxCheckListBox : public wxListBox
{
const wxString& name = wxListBoxNameStr);
// items may be checked
- bool IsChecked(uint uiIndex) const;
- void Check(uint uiIndex, bool bCheck = TRUE);
-
- // accessors
- uint GetItemHeight() const { return m_nItemHeight; }
-
-protected:
- // we create our items ourselves and they have non-standard size,
- // so we need to override these functions
- virtual wxOwnerDrawn *CreateItem(uint n);
-
- // pressing space or clicking the check box toggles the item
- void OnChar(wxKeyEvent& event);
- void OnLeftClick(wxMouseEvent& event);
-
-private:
- uint m_nItemHeight; // height of checklistbox items (the same for all)
+ bool IsChecked(size_t uiIndex) const;
+ void Check(size_t uiIndex, bool bCheck = TRUE);
DECLARE_EVENT_TABLE()
};