LCL: LM_WINDOWPOSCHANGING: check for fsFirstShow

git-svn-id: trunk@26710 -
This commit is contained in:
mattias 2010-07-17 10:26:36 +00:00
parent d52620c7e3
commit 9e35330a16

View File

@ -1315,7 +1315,8 @@ begin
if HostDockSite <> nil then Activate;
end;
LM_WINDOWPOSCHANGING:
if ([csLoading, csDesigning] * ComponentState = [csLoading])
if (not (csDesigning in ComponentState))
and (fsFirstShow in FFormState)
then begin
if (Position in [poDefault, poDefaultPosOnly])
and (WindowState <> wsMaximized)