X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/9fcd0bf7f313e637e8cd4b5d7f3cd5b294fec033..09b895cb4a954494063eb17d3dc302a654fd99e5:/include/wx/mac/carbon/listctrl.h?ds=sidebyside diff --git a/include/wx/mac/carbon/listctrl.h b/include/wx/mac/carbon/listctrl.h index a3949e50d8..c2aad6d74f 100644 --- a/include/wx/mac/carbon/listctrl.h +++ b/include/wx/mac/carbon/listctrl.h @@ -24,7 +24,7 @@ class wxListCtrlRenameTimer; WX_DECLARE_EXPORTED_LIST(wxListItem, wxColumnList); -class WXDLLEXPORT wxListCtrl: public wxControl +class WXDLLIMPEXP_CORE wxListCtrl: public wxControl { DECLARE_DYNAMIC_CLASS(wxListCtrl) public: @@ -361,6 +361,14 @@ class WXDLLEXPORT wxListCtrl: public wxControl void MacSetDrawingContext(void* context) { m_cgContext = context; } void* MacGetDrawingContext() { return m_cgContext; } + virtual wxVisualAttributes GetDefaultAttributes() const + { + return GetClassDefaultAttributes(GetWindowVariant()); + } + + static wxVisualAttributes + GetClassDefaultAttributes(wxWindowVariant variant = wxWINDOW_VARIANT_NORMAL); + protected: // protected overrides needed for pimpl approach @@ -406,6 +414,8 @@ protected: int m_count; // for virtual lists, store item count private: + int CalcColumnAutoWidth(int col) const; + DECLARE_EVENT_TABLE() };