mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-08 14:16:12 +02:00
win32: when we redirect an application.handle message check the window state of the handle window in case of minimize and the sate of the main window in other cases
git-svn-id: trunk@42112 -
This commit is contained in:
parent
5a5a3e4448
commit
c93aa0be7b
@ -2358,10 +2358,18 @@ begin
|
||||
// this is needed since we don't minimize the main form window
|
||||
// we only hide and show it back on mimize and restore in case MainFormOnTaskbar = False
|
||||
if (Window = Win32WidgetSet.AppHandle) and
|
||||
Assigned(Application.MainForm) and Application.MainForm.HandleAllocated
|
||||
Assigned(Application.MainForm) and Application.MainForm.HandleAllocated then
|
||||
begin
|
||||
lWinControl := Application.MainForm;
|
||||
Window := Application.MainFormHandle;
|
||||
// lie LCL about the window state
|
||||
if IsIconic(Win32WidgetSet.AppHandle) then
|
||||
SizeType := SIZE_MINIMIZED or Size_SourceIsInterface
|
||||
else
|
||||
if IsZoomed(Window) then
|
||||
SizeType := SIZE_MAXIMIZED or Size_SourceIsInterface
|
||||
else
|
||||
SizeType := SIZE_RESTORED or Size_SourceIsInterface;
|
||||
end;
|
||||
|
||||
GetWindowSize(Window, NewWidth, NewHeight);
|
||||
|
Loading…
Reference in New Issue
Block a user