csBrushValid is not required for DrawFocusRect, fixed warning msg in TWin32WidgetSet.DrawFocusRect, tnks Vincent

git-svn-id: trunk@9295 -
This commit is contained in:
jesus 2006-05-16 22:51:35 +00:00
parent 47948ab39e
commit 8bb640c7fd
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ end;
procedure TCanvas.DrawFocusRect(const ARect: TRect);
begin
Changing;
RequiredState([csHandleValid, csBrushValid]);
RequiredState([csHandleValid]);
LCLIntf.DrawFocusRect(FHandle, ARect);
Changed;
end;

View File

@ -1084,7 +1084,7 @@ function TWin32WidgetSet.DrawFocusRect(DC: HDC; const Rect: TRect): boolean;
var
lRect: Windows.RECT;
begin
{$message warn TWin32WidgetSet.FrameRect TODO: optimize ARect copying?}
{$message warn TWin32WidgetSet.DrawFocusRect TODO: optimize Rect copying}
lRect:=Rect;
Result:= Windows.DrawFocusRect(DC, lRect);
end;