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. Text in the systray (not icon)

Text in the systray (not icon)

Scheduled Pinned Locked Moved C / C++ / MFC
question
2 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.
  • A Offline
    A Offline
    albean
    wrote on last edited by
    #1

    Guys, How can I get text info into the systray? Something like the clock. All the examples I see are to put icons there but I need to put a small amount of text there (and it would be great if I could change the color of it too - maybe even make it scroll.) Thanks!

    R 1 Reply Last reply
    0
    • A albean

      Guys, How can I get text info into the systray? Something like the clock. All the examples I see are to put icons there but I need to put a small amount of text there (and it would be great if I could change the color of it too - maybe even make it scroll.) Thanks!

      R Offline
      R Offline
      Ryan Binns
      wrote on last edited by
      #2

      There's no support for this in the API. If your text can fit on a 16x16 icon, then you can create an icon dynamically with the text on it. Otherwise, you'll have to be extremely creative, possibly finding the system tray window, and creating a child window inside it. It's not that simple either. You might even have to subclass the taskbar so that you can stop the taskbar's default tray positioning, which means writing a DLL and using either SHLoadInProc() or a system-wide hook to get into explorer's address space... If you manage it, write an article :). You might want to find another way of showing the information though. It's probably not worth the effort of reprogramming Windows. Ryan Being little and getting pushed around by big guys all my life I guess I compensate by pushing electrons and holes around. What a bully I am, but I do enjoy making subatomic particles hop at my bidding - Roger Wright (2nd April 2003, The Lounge)
      Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late - John Nichol "Point Of Impact"

      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