mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-09 22:19:21 +02:00
win32: better detect top level window in TWin32WidgetSet.GetWindowSize (fixes bug #0013921)
git-svn-id: trunk@21648 -
This commit is contained in:
parent
e64f3abce1
commit
1417561829
@ -2338,7 +2338,7 @@ begin
|
||||
|
||||
// if it is a top level window then you can't use the normal size:
|
||||
// maximized or aero snap windows will have problems
|
||||
if GetParent(Handle) = 0 then
|
||||
if (GetWindowLong(Handle, GWL_STYLE) and WS_CHILD = 0) then
|
||||
begin
|
||||
FillChar(Info, SizeOf(Info), 0);
|
||||
Info.cbSize := SizeOf(Info);
|
||||
|
Loading…
Reference in New Issue
Block a user