Shoutbox

[Question] Interop object and Call to Shell_NotifyIcon - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [Question] Interop object and Call to Shell_NotifyIcon (/showthread.php?tid=61352)

[Question] Interop object and Call to Shell_NotifyIcon by unknown1506 on 06-25-2006 at 04:40 PM

Hello, I know that the Interop object has  a function named Call wich allows us to call functions from external dll's. I want to call the Shell_NotifyIcon function wich is used to create an icon on the systray. The thing is that I don't know exactly how to invoke the fuction since it is called:

Shell_NotifyIcon(NIM_ADD,&niData);

where NIM_ADD is the message &H0
and niData is a variable of structure NOTIFYICONDATA defined as follows:

Type NOTIFYICONDATA
   cbSize As Long
   hWnd As Long
   uID As Long
   uFlags As Long
   uCallbackMessage As Long
   hIcon As Long
   szTip As String * 128
   dwState As Long
   dwStateMask As Long
   szInfo As String * 256
   uTimeoutAndVersion As Long
   szInfoTitle As String * 64
   dwInfoFlags As Long
   guidItem As GUID
End Type

Hope someone can help,
Thanks in advance.


RE: [Question] Interop object and Call to Shell_NotifyIcon by matty on 06-29-2006 at 02:11 AM

I can't guarantee how correct this is going to be :

http://mattyg.ca/geshi/shell_notifyicon.php


RE: [Question] Interop object and Call to Shell_NotifyIcon by unknown1506 on 07-15-2006 at 10:42 PM

Thanks a lot!

That example really helped a lot and i got it to work with some minor modifications, the thing is that when i put the mouse over the icon on the tray it dissapears. Any idea why?

Thanks in advance.