win32: force showing of form close button in the design-time (even if BorderIcons and BorderStyle request to hide it)

git-svn-id: trunk@21753 -
This commit is contained in:
paul 2009-09-18 04:44:38 +00:00
parent e19f46701f
commit eeba75a1a6

View File

@ -234,7 +234,7 @@ var
begin
Result := 0;
BorderIcons := AForm.BorderIcons;
if biSystemMenu in BorderIcons then
if (biSystemMenu in BorderIcons) or (csDesigning in AForm.ComponentState) then
Result := Result or WS_SYSMENU;
if GetDesigningBorderStyle(AForm) in [bsNone, bsSingle, bsSizeable] then
begin