From 94254ee936c4f776fe4b2a5defec04a179eed5b3 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Sat, 30 May 2009 22:38:47 +0000 Subject: [PATCH] forward Freeze/Thaw() and Update() to the generic list control (see #10858) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@60825 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- include/wx/mac/carbon/listctrl.h | 6 ++++++ src/mac/carbon/listctrl_mac.cpp | 21 +++++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/include/wx/mac/carbon/listctrl.h b/include/wx/mac/carbon/listctrl.h index 8d20a96b75..b42850f1e4 100644 --- a/include/wx/mac/carbon/listctrl.h +++ b/include/wx/mac/carbon/listctrl.h @@ -325,6 +325,12 @@ class WXDLLEXPORT wxListCtrl: public wxControl virtual bool SetForegroundColour(const wxColour& colour); virtual bool SetBackgroundColour(const wxColour& colour); virtual wxColour GetBackgroundColour() const; + +#if wxABI_VERSION >= 20811 + virtual void Freeze (); + virtual void Thaw (); + virtual void Update (); +#endif // functions for editing/timer void OnRenameTimer(); diff --git a/src/mac/carbon/listctrl_mac.cpp b/src/mac/carbon/listctrl_mac.cpp index db432b2eba..edc3254358 100644 --- a/src/mac/carbon/listctrl_mac.cpp +++ b/src/mac/carbon/listctrl_mac.cpp @@ -927,6 +927,27 @@ wxColour wxListCtrl::GetBackgroundColour() const return wxNullColour; } +void wxListCtrl::Freeze () +{ + if (m_genericImpl) + m_genericImpl->Freeze(); + wxControl::Freeze(); +} + +void wxListCtrl::Thaw () +{ + if (m_genericImpl) + m_genericImpl->Thaw(); + wxControl::Thaw(); +} + +void wxListCtrl::Update () +{ + if (m_genericImpl) + m_genericImpl->Update(); + wxControl::Update(); +} + // ---------------------------------------------------------------------------- // accessors // ----------------------------------------------------------------------------