T0:独帅,
{不用控件,改两个文件即可:
1 == 工程文件:Project1.dpr
//加一条语句
program Project1;
uses
Forms, Windows,
Unit1 in 'Unit1.pas' {Form1};
{$R *.res}
begin
Application.Initialize;
SetWindowLong(Application.Handle, GWL_EXSTYLE, WS_EX_TOOLWINDOW);
Application.CreateForm(TForm1, Form1);
Application.Run;
end.
2 == 主窗口所在单元Unit1.pas
//加一个函数CreateParams
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs;
type
TForm1 = class(TForm)
private
{ Private declarations }
protected
procedure CreateParams(var Params: TCreateParams); override;
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.CreateParams(var Params: TCreateParams);
begin
inherited CreateParams(Params);
Params.WndParent := 0;
end;
end.}
---------------------
以上这段代码有个BUG.就是最小化不了啊.???你是否已发现.能否帮忙解决一下....
其它大虾如果知道也可以通知我.谢谢..([red]到时将开再开贴发分[/red])
dream40@etang.com