+
+ // NOTE: Using the theme to draw HP_HEADERSORTARROW doesn't do anything.
+ // Why? If this can be fixed then draw the sort arrows using the theme
+ // and then clear those flags before calling DrawHeaderButtonContents.
+
+ // Add any extras that are specified in flags and params
+ return DrawHeaderButtonContents(win, dc, rect, flags, sortArrow, params);
+}
+
+
+int
+wxRendererXP::GetHeaderButtonHeight(wxWindow *win)
+{
+ wxUxThemeHandle hTheme(win, L"HEADER");
+ if ( !hTheme )
+ {
+ return m_rendererNative.GetHeaderButtonHeight(win);
+ }
+
+ HRESULT hr;
+ int value = -1;
+
+ hr = wxUxThemeEngine::Get()->GetThemeMetric( hTheme,
+ NULL,
+ HP_HEADERITEM,
+ HIS_NORMAL,
+ TMT_HEIGHT,
+ &value );
+ if ( hr == S_OK )
+ return value;
+ else
+ return 20;