delphi XE5 はどのようにして通知領域にあるこのソフトウェアではなく他のプログラムのアイコンを非表示にしますか? プロセスを閉じないでください。詳細なコード例を教えてください。たとえば、Shell_NotifyIcon は通知領域の DEVBIT.exe プロセスのアイコンを実際に非表示にすることができます。

Shell_NotifyIcon API を使用すると、Delphi XE5 で指定したプロセスのアイコンを非表示にすることができます。コードは次のとおりです:procedure HideIcon(const aProcessName: string); var Hwnd: HWND; NotifyIconData: TNotifyIconData; begin Hwnd := FindWindow(nil, PChar) (aProcessName) ); if Hwnd <> 0 then begin FillChar(NotifyIconData, SizeOf(NotifyIconData), 0);

おすすめ

転載: blog.csdn.net/weixin_42607969/article/details/129536195