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:
@@ -4622,11 +4622,15 @@ void wxGenericListCtrl::CalculateAndSetHeaderHeight()
|
|||||||
{
|
{
|
||||||
if ( m_headerWin )
|
if ( m_headerWin )
|
||||||
{
|
{
|
||||||
|
#ifdef __WXMAC__
|
||||||
|
SInt32 h ;
|
||||||
|
GetThemeMetric( kThemeMetricListHeaderHeight, &h );
|
||||||
|
#else
|
||||||
// we use 'g' to get the descent, too
|
// we use 'g' to get the descent, too
|
||||||
int w, h, d;
|
int w, h, d;
|
||||||
m_headerWin->GetTextExtent(wxT("Hg"), &w, &h, &d);
|
m_headerWin->GetTextExtent(wxT("Hg"), &w, &h, &d);
|
||||||
h += d + 2 * HEADER_OFFSET_Y + EXTRA_HEIGHT;
|
h += d + 2 * HEADER_OFFSET_Y + EXTRA_HEIGHT;
|
||||||
|
#endif
|
||||||
// only update if changed
|
// only update if changed
|
||||||
if ( h != m_headerHeight )
|
if ( h != m_headerHeight )
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user