From fec8346a04994fe0ae34b47335e13cfae2a64a23 Mon Sep 17 00:00:00 2001 From: Stefan Csomor Date: Fri, 18 Feb 2005 20:23:02 +0000 Subject: [PATCH] using correct theme heights for header on mac git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32154 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/listctrl.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/generic/listctrl.cpp b/src/generic/listctrl.cpp index 2c59553c86..25d1f61b83 100644 --- a/src/generic/listctrl.cpp +++ b/src/generic/listctrl.cpp @@ -4622,11 +4622,15 @@ void wxGenericListCtrl::CalculateAndSetHeaderHeight() { if ( m_headerWin ) { +#ifdef __WXMAC__ + SInt32 h ; + GetThemeMetric( kThemeMetricListHeaderHeight, &h ); +#else // we use 'g' to get the descent, too int w, h, d; m_headerWin->GetTextExtent(wxT("Hg"), &w, &h, &d); h += d + 2 * HEADER_OFFSET_Y + EXTRA_HEIGHT; - +#endif // only update if changed if ( h != m_headerHeight ) { -- 2.45.2