Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. windows hicon problem

windows hicon problem

Scheduled Pinned Locked Moved C / C++ / MFC
linuxhelptutorialquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • C Offline
    C Offline
    c s
    wrote on last edited by
    #1

    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

    R 1 Reply Last reply
    0
    • C c s

      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

      R Offline
      R Offline
      Rage
      wrote on last edited by
      #2

      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 1 Reply Last reply
      0
      • R 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();

        C Offline
        C Offline
        c s
        wrote on last edited by
        #3

        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.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups