From: Stefan Csomor Date: Fri, 18 Feb 2005 20:23:02 +0000 (+0000) Subject: using correct theme heights for header on mac X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/fec8346a04994fe0ae34b47335e13cfae2a64a23 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 --- 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 ) {