Click to See Complete Forum and Search --> : Systray icons
geeq
June 20th, 2008, 01:40 PM
Hello,
I'd like to know how could i get the system tray icons in my app. Can anyone show me some solution?
Thanks
HanneSThEGreaT
June 21st, 2008, 03:19 AM
Do you mean the NotifyIcon which is availasble in your Toolbox ¿
geeq
June 22nd, 2008, 02:47 AM
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...
GremlinSA
June 22nd, 2008, 04:56 AM
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...
That is a 'NotifyIcon' that is used... Check out this app in VS 2005 (http://www.codeguru.com/forum/showthread.php?p=1593071#post1593071) for a working example of a how to use The 'Notifyicon'
Gremmy..
geeq
June 23rd, 2008, 11:16 AM
That is a 'NotifyIcon' that is used... Check out this app in VS 2005 (http://www.codeguru.com/forum/showthread.php?p=1593071#post1593071) for a working example of a how to use The 'Notifyicon'
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.
HanneSThEGreaT
June 24th, 2008, 05:47 AM
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 :)
geeq
June 25th, 2008, 02:05 PM
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.
HanneSThEGreaT
June 26th, 2008, 12:51 AM
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 ¿
geeq
June 26th, 2008, 10:03 AM
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.
A sample would be great, really great! Thanks;
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.