mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-19 04:19:09 +02:00
win32: always call GetWindowSize in WM_SIZE handler - it already takes iconic windows into account (fixes a bug with minimizing/restoring windows and their size growing)
git-svn-id: trunk@29756 -
This commit is contained in:
parent
66766609c8
commit
786385251f
@ -2318,17 +2318,7 @@ begin
|
||||
Window := Application.MainFormHandle;
|
||||
end;
|
||||
end;
|
||||
WindowPlacement.length := SizeOf(WindowPlacement);
|
||||
if IsIconic(Window) and GetWindowPlacement(Window, @WindowPlacement) then
|
||||
begin
|
||||
with WindowPlacement.rcNormalPosition do
|
||||
begin
|
||||
NewWidth := Right - Left;
|
||||
NewHeight := Bottom - Top;
|
||||
end;
|
||||
end
|
||||
else
|
||||
GetWindowSize(Window, NewWidth, NewHeight);
|
||||
GetWindowSize(Window, NewWidth, NewHeight);
|
||||
Width := NewWidth;
|
||||
Height := NewHeight;
|
||||
if Assigned(lWinControl) then
|
||||
|
Loading…
Reference in New Issue
Block a user