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