敬请高手指教,谢谢!

解决方案 »

  1.   

    http://www.delphibbs.com/delphibbs/dispq.asp?lid=1280667
    请问Delphi中怎么样可以使不在任务拦内显示
      

  2.   

    new -> other ->service
      

  3.   

    Application.Initialize;
      ExtendedStyle := GetWindowLong(Application.Handle, GWL_EXSTYLE);//1
      SetWindowLong(Application.Handle, GWL_EXSTYLE, ExtendedStyle OR WS_EX_TOOLWINDOW  AND NOT WS_EX_APPWINDOW);//2
      Application.CreateForm(TForm1, Form1);
      Application.Run;在你的工程unit 里面,对应的地方加入如上两条即可
      

  4.   

    先设置窗口最小化uses
      Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
      Dialogs;type
      TForm1 = class(TForm)
        procedure FormCreate(Sender: TObject);
      private
        { Private declarations }
      public
        { Public declarations }
      end;var
      Form1: TForm1;implementation{$R *.dfm}procedure TForm1.FormCreate(Sender: TObject);
    begin
    showwindow(application.Handle,sw_hide);
    setwindowlong(application.Handle,GWL_EXSTYLE,GETwindowLONG(application.Handle,GWL_exstyle) or WS_EX_TOOLWINDOW AND NOT WS_EX_APPWINDOW);
    end;end.