LCL: Assign parameters in LCLSendShowWindowMsg. Issue #40212, patch by Alexey Torgashin.

This commit is contained in:
Juha 2023-04-16 17:40:01 +03:00
parent 74cd012d9c
commit cacdbc65f4

View File

@ -222,11 +222,12 @@ end;
function LCLSendShowWindowMsg(const Target: TControl; Show: Boolean;
Status: LPARAM = 0): PtrInt;
var
Mess : TLMShowWindow;
Mess : TLMShowWindow;
begin
FillChar(Mess,SizeOf(Mess),0);
Mess.Msg := LM_SHOWWINDOW;
Mess.Show := True;
Mess.Show := Show;
Mess.Status := Status;
Result := DeliverMessage(Target, Mess);
end;