win32 interface: don't show designer windows in the taskbar

git-svn-id: trunk@10474 -
This commit is contained in:
vincents 2007-01-18 14:22:02 +00:00
parent 21bb6f3c42
commit 8b7cf08537

View File

@ -222,8 +222,9 @@ begin
Width := LongInt(CW_USEDEFAULT);
Height := LongInt(CW_USEDEFAULT);
SubClassWndProc := nil;
if ((Application = nil) or (Application.MainForm <> lForm))
and (lForm.ShowInTaskBar = stAlways) then
if ((Application = nil) or (Application.MainForm <> lForm)) and
( not (csDesigning in lForm.ComponentState) and
(lForm.ShowInTaskBar = stAlways)) then
Parent := 0;
end;
// create window