compilation fix after wxUxThemeEngine changes

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22398 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2003-07-30 23:16:48 +00:00
parent 2d9c0e97c5
commit 2142d7ba6a

View File

@@ -787,26 +787,27 @@ wxColour wxNotebook::GetThemeBackgroundColour()
#if wxUSE_UXTHEME #if wxUSE_UXTHEME
if (wxUxThemeEngine::Get()) if (wxUxThemeEngine::Get())
{ {
WXHTHEME hTheme = wxUxThemeEngine::Get()->m_pfnOpenThemeData(GetHWND(), L"TAB"); wxUxThemeHandle hTheme(this, L"TAB");
if (hTheme) if (hTheme)
{ {
// This is total guesswork. // This is total guesswork.
// See PlatformSDK\Include\Tmschema.h for values // See PlatformSDK\Include\Tmschema.h for values
COLORREF themeColor; COLORREF themeColor;
wxUxThemeEngine::Get()-> wxUxThemeEngine::Get()->GetThemeColor
m_pfnGetThemeColor(hTheme, (
10 /* TABP_BODY */, hTheme,
1 /* NORMAL */, 10 /* TABP_BODY */,
3821, /* FILLCOLORHINT */ 1 /* NORMAL */,
& themeColor); 3821, /* FILLCOLORHINT */
& themeColor
wxUxThemeEngine::Get()->m_pfnCloseThemeData(hTheme); );
wxColour colour(GetRValue(themeColor), GetGValue(themeColor), GetBValue(themeColor)); wxColour colour(GetRValue(themeColor), GetGValue(themeColor), GetBValue(themeColor));
return colour; return colour;
} }
} }
#endif #endif // wxUSE_UXTHEME
return GetBackgroundColour(); return GetBackgroundColour();
} }