X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f97c985452b20a8c2f0bbfb1d0275298bf09fb45..b0bb2669bcdc7530acebb07b5b7072d670c04b68:/include/wx/msw/checklst.h diff --git a/include/wx/msw/checklst.h b/include/wx/msw/checklst.h index a58714daa6..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." @@ -24,7 +26,7 @@ typedef unsigned int size_t; class wxCheckListBoxItem; // fwd decl, define in checklst.cpp -class wxCheckListBox : public wxListBox +class WXDLLEXPORT wxCheckListBox : public wxListBox { DECLARE_DYNAMIC_CLASS(wxCheckListBox) public: @@ -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,