读书人

这段代码是什么意思?该怎么解决

发布时间: 2012-03-14 12:01:12 作者: rapoo

这段代码是什么意思?
procedure TMainForm.FormCreate(Sender: TObject);
var
Setting: LongInt;
begin
if BorderStyle= bsNone then Exit;
Setting:= GetWindowLong(Handle, gwl_style);
if (Setting and ws_Caption)= ws_Caption then
begin
case BorderStyle of
bsSingle,
bsSizeable: SetWindowLong(Handle, gwl_Style, Setting and (Not(ws_Caption))or ws_border);
bsDialog: SetWindowLong(Handle, gwl_Style, Setting and (Not(ws_Caption))or ds_modalframe or ws_dlgframe);
end;
end;
Height:= Height- getSystemMetrics(sm_cyCaption);
Refresh;
end;


[解决办法]
窗口 风格 ,大小的一些设置 ,具体可以查看msdn 。

读书人网 >.NET

热点推荐