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 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,
|
(
|
||||||
|
hTheme,
|
||||||
10 /* TABP_BODY */,
|
10 /* TABP_BODY */,
|
||||||
1 /* NORMAL */,
|
1 /* NORMAL */,
|
||||||
3821, /* FILLCOLORHINT */
|
3821, /* FILLCOLORHINT */
|
||||||
& themeColor);
|
& 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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user