]> git.saurik.com Git - wxWidgets.git/commitdiff
using correct theme heights for header on mac
authorStefan Csomor <csomor@advancedconcepts.ch>
Fri, 18 Feb 2005 20:23:02 +0000 (20:23 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Fri, 18 Feb 2005 20:23:02 +0000 (20:23 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@32154 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/listctrl.cpp

index 2c59553c86d642c416adb6f03e5a9b6537367e96..25d1f61b83d15858c47370b288e6129aaa47b074 100644 (file)
@@ -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 )
         {