win32: fix 2 typos

git-svn-id: trunk@28152 -
This commit is contained in:
paul 2010-11-08 10:23:29 +00:00
parent f09ed2fb3c
commit 1e7ca80be4

View File

@ -517,7 +517,7 @@ begin
WM_CTLCOLORSTATIC:
begin
Info := GetWin32WindowInfo(HWND(LParam));
Result := Assigned(Info) and ThemeServices.ThemesAvailable and (Info^.WinControl.Color = AWinControl.Color);
Result := Assigned(Info) and ThemeServices.ThemesEnabled and (Info^.WinControl.Color = AWinControl.Color);
if Result then
begin
ThemeServices.DrawParentBackground(HWND(LParam), HDC(WParam), nil, False);
@ -1395,7 +1395,7 @@ begin
WM_CTLCOLORSTATIC:
begin
Info := GetWin32WindowInfo(HWND(LParam));
Result := Assigned(Info) and ThemeServices.ThemesAvailable and TCustomStaticText(Info^.WinControl).Transparent;
Result := Assigned(Info) and ThemeServices.ThemesEnabled and TCustomStaticText(Info^.WinControl).Transparent;
if Result then
begin
ThemeServices.DrawParentBackground(HWND(LParam), HDC(WParam), nil, False);