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
This commit is contained in:
Stefan Csomor
2005-02-18 20:23:02 +00:00
parent 5a904a32e6
commit fec8346a04

View 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 )
{