windows hicon problem
-
My application uses a tray icon (Shell_NotifyIcon) and I need to access the data of my icon displayed. Does anyone know what a HICON points to and how to manipulate the icon data, or simply after loading an icon yourself, using that in the tasktray or converting it to a HANDLE windows can use? thanks
-
My application uses a tray icon (Shell_NotifyIcon) and I need to access the data of my icon displayed. Does anyone know what a HICON points to and how to manipulate the icon data, or simply after loading an icon yourself, using that in the tasktray or converting it to a HANDLE windows can use? thanks
c. s. wrote: I need to access the data of my icon displayed What data is this ? an HICON is a simple handle on your icon, a sort of identifier given by windows which you get after calling one of the multiple CreateIcon...() functions. This handle can then be passed as a parameter for functions such as DrawIcon to actually draw your icon somewhere in your device context. Search code project (Using the search utility above) with : tray icon and you will get a lot of example about how to handle tray icons. ~RaGE();
-
c. s. wrote: I need to access the data of my icon displayed What data is this ? an HICON is a simple handle on your icon, a sort of identifier given by windows which you get after calling one of the multiple CreateIcon...() functions. This handle can then be passed as a parameter for functions such as DrawIcon to actually draw your icon somewhere in your device context. Search code project (Using the search utility above) with : tray icon and you will get a lot of example about how to handle tray icons. ~RaGE();
thanks, but that isn't my problem. It will probably helpful if I explain what I want to do. I have an animated icon 12 frames long, I also want it to change color depending on what the application is doing, however I don't want to end up making 76 different icons. I need to access the pixel data so I can overlay a color with 3dnow and mmx, so I need access to the actual memory or load the icon myself and if possible, set the data up the same way the data is set up that a HANDLE points to, and point my HICON at it.