property BorderStyle: TFormBorderStyle;Value MeaningbsDialog Not resizeable; standard dialog box border bsSingle Not resizeable; single-line border bsNone Not resizeable; no visible border line bsSizeable Standard resizeable border bsToolWindow like bsSingle but with a smaller caption bsSizeToolWin like bsSizeable with a smaller caption property BorderIcons:TBorderIcons;Value MeaningbiSystemMenu …… biMinimize The form has a Minimize button biMaximize The form has a Maximize button biHelp ……
api fuction getsystemmenu getsubmenu removemenu
var wl: LongInt; begin wl := GetWindowLong(self.HANDLE, GWL_STYLE); SetWindowLong(self.HANDLE, GWL_STYLE, wl and not WS_MINIMIZEBOX) ; //WS_MAXIMIZEBOX end; --The end;
api fuction getsystemmenu getsubmenu removemenu具体怎样使用
form.BorderIcons里
biMinimize := false;
biMaximize := False;
biMinimize := false;
biMaximize := False;
biMinimize := false;
biMaximize := False
bsSingle Not resizeable; single-line border
bsNone Not resizeable; no visible border line
bsSizeable Standard resizeable border
bsToolWindow like bsSingle but with a smaller caption
bsSizeToolWin like bsSizeable with a smaller caption
property BorderIcons:TBorderIcons;Value MeaningbiSystemMenu ……
biMinimize The form has a Minimize button
biMaximize The form has a Maximize button
biHelp ……
getsystemmenu
getsubmenu
removemenu
wl: LongInt;
begin
wl := GetWindowLong(self.HANDLE, GWL_STYLE);
SetWindowLong(self.HANDLE, GWL_STYLE,
wl and not WS_MINIMIZEBOX) ; //WS_MAXIMIZEBOX
end;
--The end;
getsystemmenu
getsubmenu
removemenu具体怎样使用