mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-26 01:19:36 +02:00
win32: fix minimize of application where there is no main form or it has not handle yet
git-svn-id: trunk@22781 -
This commit is contained in:
parent
c00da14b3c
commit
dfb5d67e48
@ -2486,10 +2486,13 @@ begin
|
||||
Msg := LM_SIZE;
|
||||
SizeType := WParam or Size_SourceIsInterface;
|
||||
if Window = TWin32WidgetSet(WidgetSet).AppHandle then
|
||||
begin
|
||||
if Assigned(Application.MainForm) and Application.MainForm.HandleAllocated then
|
||||
begin
|
||||
lWinControl := Application.MainForm;
|
||||
Window := Application.MainForm.Handle;
|
||||
end;
|
||||
end;
|
||||
if IsIconic(Window) then
|
||||
begin
|
||||
GetWindowPlacement(Window, @WindowPlacement);
|
||||
|
Loading…
Reference in New Issue
Block a user