mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 03:49:30 +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
@ -2487,8 +2487,11 @@ begin
|
||||
SizeType := WParam or Size_SourceIsInterface;
|
||||
if Window = TWin32WidgetSet(WidgetSet).AppHandle then
|
||||
begin
|
||||
lWinControl := Application.MainForm;
|
||||
Window := Application.MainForm.Handle;
|
||||
if Assigned(Application.MainForm) and Application.MainForm.HandleAllocated then
|
||||
begin
|
||||
lWinControl := Application.MainForm;
|
||||
Window := Application.MainForm.Handle;
|
||||
end;
|
||||
end;
|
||||
if IsIconic(Window) then
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user