LCL: Win32: Groupbox: Remove doubled code.

git-svn-id: trunk@58494 -
This commit is contained in:
michl 2018-07-12 08:47:56 +00:00
parent 2bbe0a8cc7
commit 940d696a66

View File

@ -515,14 +515,6 @@ end;
function GroupBoxWindowProc(Window: HWnd; Msg: UInt; WParam: Windows.WParam;
LParam: Windows.LParam): LResult; stdcall;
function EnabledPainted(AControl: TControl): Boolean;
begin
Result := AControl.Enabled;
if not Result or not Assigned(AControl.Parent) then Exit;
Result := EnabledPainted(AControl.Parent);
end;
var
Info: PWin32WindowInfo;
DC: HDC;
@ -556,7 +548,7 @@ begin
begin
Info := GetWin32WindowInfo(Window);
if Assigned(Info) and (Info^.WinControl is TCustomGroupBox)
and not EnabledPainted(Info^.WinControl) then
and not Info^.WinControl.IsEnabled then
begin
GroupBox := TCustomGroupBox(Info^.WinControl);
DC := Windows.GetDC(Window);