mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 14:50:32 +02:00
LCL: Win32: Groupbox: Remove doubled code.
git-svn-id: trunk@58494 -
This commit is contained in:
parent
2bbe0a8cc7
commit
940d696a66
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user