+ -
当前位置:首页 → 问答吧 → 这段代码是什么意思?

这段代码是什么意思?

时间:2011-10-28

来源:互联网

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;

作者: space118151509   发布时间: 2011-10-28

窗口 风格 ,大小的一些设置 ,具体可以查看msdn 。

作者: okmnjizc   发布时间: 2011-10-28