Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Placing an icon in Start menu Bar

Status
Not open for further replies.

engale

Programmer
May 9, 2003
14
CO
Hi All,

Im placing in the Start menu bar an icon for the option "Hide" in my application, but i can not remove it by itself, the icon remains in the menu bar til i point with my mouse.

How can i remove this icon when the application ends?.

I´m using the TNotifyIconData, WndProc procedure for handle the icon. in D7, if you know other procedures please let me know.

Thanx a lot,

Alejandro
 
Does this not work?

Code:
       if not Shell_NotifyIcon(NIM_DELETE, @FIconData) then
           raise Exception.Create('Cannot remove tray icon');

Cheers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top