X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/655719367ac5e131d9642e5783f3ecf64d1a3385..024026be1dddaa0acf1360dc9a3847fd671de7a0:/include/wx/msw/checklst.h diff --git a/include/wx/msw/checklst.h b/include/wx/msw/checklst.h index 73385b20da..4b62d3ab31 100644 --- a/include/wx/msw/checklst.h +++ b/include/wx/msw/checklst.h @@ -12,10 +12,6 @@ #ifndef __CHECKLST__H_ #define __CHECKLST__H_ -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma interface "checklst.h" -#endif - #if !wxUSE_OWNER_DRAWN #error "wxCheckListBox class requires owner-drawn functionality." #endif @@ -66,7 +62,7 @@ public: // items may be checked virtual bool IsChecked(size_t uiIndex) const; - virtual void Check(size_t uiIndex, bool bCheck = TRUE); + virtual void Check(size_t uiIndex, bool bCheck = true); // return the index of the item at this position or wxNOT_FOUND int HitTest(const wxPoint& pt) const { return DoHitTestItem(pt.x, pt.y); } @@ -88,6 +84,8 @@ protected: void OnKeyDown(wxKeyEvent& event); void OnLeftClick(wxMouseEvent& event); + wxSize DoGetBestSize() const; + private: size_t m_nItemHeight; // height of checklistbox items (the same for all)