X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6c905cb7fdc856317f1e1db9c6d6aaa93c67920c..2917e9204382ec1ecc96de7fc98bd3068da2233c:/include/wx/msw/checklst.h diff --git a/include/wx/msw/checklst.h b/include/wx/msw/checklst.h index 53f68e1e7a..33ac083c8f 100644 --- a/include/wx/msw/checklst.h +++ b/include/wx/msw/checklst.h @@ -16,7 +16,9 @@ #pragma interface "checklst.h" #endif -typedef unsigned int size_t; +// No! +// typedef unsigned int size_t; +#include #if !wxUSE_OWNER_DRAWN #error "wxCheckListBox class requires owner-drawn functionality." @@ -38,14 +40,17 @@ public: long style = 0, const wxValidator& validator = wxDefaultValidator, const wxString& name = wxListBoxNameStr); -// const wxFont& font = wxNullFont); + + // override base class virtuals + virtual void Delete(int n); + virtual void InsertItems(int nItems, const wxString items[], int pos); // items may be checked - bool IsChecked(size_t uiIndex) const; - void Check(size_t uiIndex, bool bCheck = TRUE); + bool IsChecked(size_t uiIndex) const; + void Check(size_t uiIndex, bool bCheck = TRUE); // accessors - size_t GetItemHeight() const { return m_nItemHeight; } + size_t GetItemHeight() const { return m_nItemHeight; } protected: // we create our items ourselves and they have non-standard size,