Hello,
I'd like to know how could i get the system tray icons in my app. Can anyone show me some solution?
Thanks
Printable View
Hello,
I'd like to know how could i get the system tray icons in my app. Can anyone show me some solution?
Thanks
Do you mean the NotifyIcon which is availasble in your Toolbox ¿
nope, i mean all the other programs' notification icons in the system tray. for example the volume indicator or the network status indicator which is putted there by windows...Quote:
Originally Posted by HanneSThEGreaT
That is a 'NotifyIcon' that is used... Check out this app in VS 2005 for a working example of a how to use The 'Notifyicon'Quote:
Originally Posted by geeq
Gremmy..
No, that's not. I know how to use the NotifyIcon control in vb.net. I mean i want all the icons in the system tray and hide them. Not the one i add with my app but all the others added there from an other app.Quote:
Originally Posted by GremlinSA
If we had know this, you most probably would have had the solution by now ;)
What you need to do is to use the FindWindow and FindWindowEx APIs to get access to the Shell_TrayWnd, which is the Notification area. You can also use the same APIs to then get access to TrayNotifyWnd, SysPager, ToolbarWindow32 inside Shell_TrayWnd.
I hope it helps :)
well, i can get the hwnd of the systray and the notification area. The problem is that i need to get each and every icons and be able to act with them. Actually what i wanna do is a taskbar-like thing. And that's why i need the code for this. or at least some guide.
Yes, that is where you'd need to use FindWindowEx then, to find the child windows inside Shell_TrayWnd. You need to specifically look at SysPager, ToolbarWindow32.
SHould I try to work out like a small sample for you ¿
Okay, i got window handle of the systray area but it has some toolstrip button like thingies which i don't know how to find.Quote:
Originally Posted by HanneSThEGreaT
A sample would be great, really great! Thanks;