- 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);