LCL: fixed bug where MDIChild form can be moved over main menu or task bar, introduced in r24682 #708e6de6d9

git-svn-id: trunk@24693 -
This commit is contained in:
zeljko 2010-04-18 12:36:02 +00:00
parent d661819ef3
commit 6ac3997a9f

View File

@ -769,7 +769,8 @@ procedure TCustomForm.UpdateShowInTaskBar;
var
Value: TShowInTaskBar;
begin
if (Application.MainForm = Self) or (not HandleAllocated) then Exit;
if (Application.MainForm = Self) or (not HandleAllocated)
or (FormStyle = fsMDIChild) then Exit;
Value := ShowInTaskBar;
if (Value = stDefault) or (csDesigning in ComponentState) then
case Application.TaskBarBehavior of