怎么去掉窗口的标题栏?怎么去掉窗口的标题栏?
解决方案 »
- 问下简单问题。窗体上控件加载前的事件是什么??
- 我想把一个RIDL文件转换为ACTIVEX,该怎么做?在线等待
- one or more lines were too long and have been truncated
- Express的问题
- mdb数据库问题
- 在DEPHI MIDAS中使用SockerConnect问题?请帮忙解决....
- 三层问题,关于传递参数???
- 我这个sql语句应该怎样写
- 菜鸟提问:Form 与 Frame 有何区别? 以下是Delphi帮助的说明,谁能帮忙解释一下?
- 我是Delphi初学,很有趣,想问一下那有Delphi的函数,要很全的那种,书或电子文档都行!
- 动态创建的控件,如何把事件写在一个公共的unit里面?
- 急!如何预览和打印stringgrid里的内容,能够支持分页
procedure WndProc(var msg : TMessage);override;
end;var
Form1: TForm1;implementation
{$R *.DFM}
procedure TForm1.WndProc(var msg : TMessage);
begin
if msg.Msg = WM_NCLBUTTONDOWN then
begin
if msg.WParam <> HTCLOSE then
begin
exit;
end;
end;
inherited WndProc(msg);
end;
begin
borderstyle:=bsSizeable;
setwindowlong(handle,gwl_style,getwindowlong(handle,gwl_style) and not ws_caption);
clientheight:=height;
end;
begin
borderstyle:=bsnone;
self.Left:= 0;
self.Top:= 0;
self.Width:= screen.Width;
self.Height:= screen.Height - 25;
end;
begin
borderstyle:=bsSizeable;
setwindowlong(handle,gwl_style,getwindowlong(handle,gwl_style) and not ws_caption);
clientheight:=height;
end;
我初始化的时候就把窗口最大化,用了你这个方法,可还是把工具栏挡住 了