比如全屏状态下。
解决方案 »
- rzchecktree选定的值
- 网络传输文件问题!!!!!!急急
- 救急阿~~~有关intraweb
- 我在客户端(Win2000)运行一个程序,在程序中我判断客户端的什么才能知道客户端是登录的域中还是登录到本机上。
- 关于Delphi调用C的接口问题
- 有关TPrinter打印的问题,还请帮忙指点
- 《中国开发者联盟》 欢迎您的加入!
- 大家帮帮忙,AdvstringGrid.Options:=AdvstringGrid.Options-[AdvstringGrid.Select];
- 如何知道listview被选择项的索引号?
- zip控件的使用???????
- 找到工作了,散分!
- 在做Rave報表時,為什麼只顯示5個字段,而數據源中有好多呀???? 急救!!!
TForm1 = class(TForm)
private
{ Private declarations }
procedure WmNchittest(var msg:Tmessage);
message WM_NCHITTEST;
public
{ Public declarations }
end;var
Form1: TForm1;implementation{$R *.dfm}
procedure TForm1.WmNchittest(var msg:Tmessage);
begin
inherited;
if msg.Result=htcaption then msg.Result:=htclient;
end;
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
FCanDrag: Boolean; // 可否被拖动
procedure WMNChittest(var Msg: TMessage); message WM_NCHITTEST;
public
{ Public declarations }
end;var
Form1: TForm1;implementation{$R *.dfm}{ TForm1 }procedure TForm1.WMNChittest(var Msg: TMessage);
begin
inherited;
if (Msg.Result = HTCAPTION) and (not FCanDrag) then Msg.Result := HTCLIENT;
end;procedure TForm1.Button1Click(Sender: TObject);
begin
FCanDrag := not FCanDrag; // 当按下按钮时,改变FCanDrag
end;end.
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;type
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;var
Form1: TForm1;implementation{$R *.dfm}{ TForm1 }procedure TForm1.Button1Click(Sender: TObject);
begin
if BorderStyle = bsNone then BorderStyle := bsSizeable
else BorderStyle := bsNone;
end;end.