|
-
Mar 30th, 2001, 10:39 AM
#1
Thread Starter
New Member
Hi,
How can I refresh the system tray after closing
an application than run in the system tray ?
TIA,
Eddie
-
Mar 30th, 2001, 11:58 AM
#2
Frenzied Member
I think it refreshes itself when an action like that is performed. Anyway you can use the UpdateWindow API.
Public Declare Function UpdateWindow Lib "user32" Alias "UpdateWindow" (ByVal hwnd As Long) As Long
Code:
UpdateWindow hwndofsystray
-
Mar 30th, 2001, 03:35 PM
#3
Thread Starter
New Member
Thanks , but it doesn't work.
-
Mar 30th, 2001, 06:04 PM
#4
Hyperactive Member
This might be it.
If what your doing is, after your application has unloaded, you want to remove that Icon from the System tray, then just run this.
Code:
Shell_NotifyIcon NIM_DELETE, yourIconDataObject
This will remove the icon from the system tray.
NOTE: You must provide a constant for NIM_DELETE
Visual Basic 6.0 Enterprise
Visual C++ 6.0 Professional
Wak 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|