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