Fixed invalid background colour of controls on a notebookpage when using certain XP themes/WindowBlinds skins (bug 897965).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@25840 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -942,14 +942,12 @@ wxColour wxNotebook::GetThemeBackgroundColour()
|
|||||||
// 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()->GetThemeColor
|
wxUxThemeEngine::Get()->GetThemeColor(
|
||||||
(
|
|
||||||
hTheme,
|
hTheme,
|
||||||
10 /* TABP_BODY */,
|
10 /* TABP_BODY */,
|
||||||
1 /* NORMAL */,
|
1 /* NORMAL */,
|
||||||
3821, /* FILLCOLORHINT */
|
3802 /* color of bg fill */,
|
||||||
& themeColor
|
&themeColor);
|
||||||
);
|
|
||||||
|
|
||||||
wxColour colour(GetRValue(themeColor), GetGValue(themeColor), GetBValue(themeColor));
|
wxColour colour(GetRValue(themeColor), GetGValue(themeColor), GetBValue(themeColor));
|
||||||
return colour;
|
return colour;
|
||||||
|
Reference in New Issue
Block a user