From: Vadim Zeitlin Date: Wed, 30 Jul 2003 23:16:48 +0000 (+0000) Subject: compilation fix after wxUxThemeEngine changes X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2142d7ba6ab908a4bb81ab898a44e0e8e1a8bf8d?ds=inline compilation fix after wxUxThemeEngine changes git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22398 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/msw/notebook.cpp b/src/msw/notebook.cpp index edbeaa0c3e..2594af1c81 100644 --- a/src/msw/notebook.cpp +++ b/src/msw/notebook.cpp @@ -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, - 10 /* TABP_BODY */, - 1 /* NORMAL */, - 3821, /* FILLCOLORHINT */ - & themeColor); - - wxUxThemeEngine::Get()->m_pfnCloseThemeData(hTheme); + wxUxThemeEngine::Get()->GetThemeColor + ( + hTheme, + 10 /* TABP_BODY */, + 1 /* NORMAL */, + 3821, /* FILLCOLORHINT */ + & themeColor + ); wxColour colour(GetRValue(themeColor), GetGValue(themeColor), GetBValue(themeColor)); return colour; } } -#endif +#endif // wxUSE_UXTHEME + return GetBackgroundColour(); }