May 18th, 2012, 03:09 AM
How to remove the systray icon of another application
To restore an application from "minimize to system tray" mode to "Normal" mode (visible) from another application, I am using "Showwindow" method of "user32.dll". The API is working as expected i.e. displaying the application on Normal mode.
Moreover, I want to remove that application's System tray icon as soon as its mode changes from "minimize to system tray" to "Normal".
I had tried using "Shell_NotifyIcon" method of "shell32.dll" by passing "NIM_DELETE" & reference of "NOTIFYICONDATA" but no luck.
The API method declaration is as follows:
Shared Function Shell_NotifyIcon(ByVal dwMessage As UInteger, ByRef pnid As NOTIFYICONDATA) As Boolean
Can anyone suggest me a solution for solving this issue.
Tags for this Thread
Click Here to Expand Forum to Full Width