win32: better detect top level window in TWin32WidgetSet.GetWindowSize (fixes bug #0013921)

git-svn-id: trunk@21648 -
This commit is contained in:
paul 2009-09-11 09:04:01 +00:00
parent e64f3abce1
commit 1417561829

View File

@ -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);