fix borderstyle/borderbuttons

git-svn-id: trunk@6278 -
This commit is contained in:
micha 2004-11-21 18:58:42 +00:00
parent 2cf1c1b556
commit e087248a2d

View File

@ -183,17 +183,15 @@ var
BorderIcons: TBorderIcons;
begin
Result := 0;
if not (AForm.BorderStyle in [bsNone, bsDialog, bsToolWindow]) then
BorderIcons := AForm.BorderIcons;
if biSystemMenu in BorderIcons then
Result := Result or WS_SYSMENU;
if AForm.BorderStyle in [bsNone, bsSingle, bsSizeable] then
begin
BorderIcons := AForm.BorderIcons;
if biSystemMenu in BorderIcons then
begin
Result := Result or WS_SYSMENU;
if biMinimize in BorderIcons then
Result := Result or WS_MINIMIZEBOX;
if biMaximize in BorderIcons then
Result := Result or WS_MAXIMIZEBOX;
end;
if biMinimize in BorderIcons then
Result := Result or WS_MINIMIZEBOX;
if biMaximize in BorderIcons then
Result := Result or WS_MAXIMIZEBOX;
end;
end;