DELPHI 任务栏无EXE显示

Posted on 2011-08-04 12:48  严武  阅读(224)  评论(0编辑  收藏  举报

需要用到的一个函数:

LONG SetWindowLong( 
  HWND hWnd, 
  int nIndex, 
  LONG dwNewLong
);

program Project;

uses
Forms, Windows,
 ufrmMain in 'ufrmMain.pas' {frmMain};

{$R *.res}

begin
Application.Initialize;
SetWindowLong(Application.Handle,GWL_EXSTYLE,WS_EX_TOOLWINDOW);

 Application.CreateForm(TfrmMain, frmMain);

Application.Run;
end.


Copyright © 2024 严武
Powered by .NET 9.0 on Kubernetes