至于小图标可以看看试试下面的代码:InstallIcon是加载图标,UnInstallIcon是<br>卸载图标,在单元的前面添加<br>const<br> ICON_ID = 1;<br><br>procedure TfrmMain.InstallIcon;<br>var<br> IconData: TNotifyIconData;<br>begin<br> sysTrayIcon:=TIcon.Create;<br>// sysTrayIcon.LoadFromFile('Flap.ico');<br> sysTrayIcon:=Application.Icon;<br> IconData.cbSize:=sizeof(IconData);<br> IconData.Wnd:=Handle;<br> IconData.uID:=ICON_ID;<br> IconData.uFlags:=NIF_ICON or NIF_MESSAGE or NIF_TIP;<br> IconData.uCallbackMessage:=MI_ICONEVENT;<br> IconData.hIcon:=sysTrayIcon.Handle;<br> IconData.szTip:='FlapWinTool [Ver1.0]';<br> Shell_NotifyIcon(NIM_ADD,@IconData);<br>end;<br><br>procedure TfrmMain.UnInstallIcon;<br>var<br> IconData: TNotifyIconData;<br>begin<br> IconData.cbSize:=sizeof(IconData);<br> IconData.Wnd:=Handle;<br> IconData.uID:=ICON_ID;<br> Shell_NotifyIcon(NIM_DELETE,@IconData);<br>end;