首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > .NET > .NET >

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

2012-03-14 
这段代码是什么意思?procedure TMainForm.FormCreate(Sender: TObject)varSetting: LongIntbeginif Bord

这段代码是什么意思?
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 。

热点排行