执行一个exe时为什么不显示在windows的任务栏中?我也没在程序里设置什么啊

解决方案 »

  1.   

    我是说我写的一个 exe,怎么运行时,不出现在windows的任务栏中? 麻烦帮一下
      

  2.   

    ◇[DELPHI]程序不出现在ALT+CTRL+DEL
    在implementation后添加声明:
    function RegisterServiceProcess(dwProcessID, dwType: Integer): Integer; stdcall; external KERNEL32.DLL;
    RegisterServiceProcess(GetCurrentProcessID, 1);//隐藏
    RegisterServiceProcess(GetCurrentProcessID, 0);//显示
    用ALT+DEL+CTRL看不见◇[DELPHI]程序不出现在任务栏
    uses windows
    var
    ExtendedStyle : Integer;
    begin
    Application.Initialize;
    //==============================================================
    ExtendedStyle := GetWindowLong (Application.Handle, GWL_EXSTYLE);
    SetWindowLong(Application.Handle, GWL_EXSTYLE, ExtendedStyle OR WS_EX_TOOLWINDOW
    AND NOT WS_EX_APPWINDOW);
    //===============================================================
    Application.CreateForm(TForm1, Form1);
    Application.Run;