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. Forcing the system tray clock to redraw

Forcing the system tray clock to redraw

Scheduled Pinned Locked Moved C / C++ / MFC
algorithmsquestion
2 Posts 1 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.
  • P Offline
    P Offline
    Peter Jones
    wrote on last edited by
    #1

    I've tried various pieces of sample code to find the system tray window, and the system clock window, but none of them seem to work. I even tried searching for the window by title, creating a title from the current time. No go. What I want to do it force the clock to redraw after I've updated the time. Anybody had success in this area? Peter

    P 1 Reply Last reply
    0
    • P Peter Jones

      I've tried various pieces of sample code to find the system tray window, and the system clock window, but none of them seem to work. I even tried searching for the window by title, creating a title from the current time. No go. What I want to do it force the clock to redraw after I've updated the time. Anybody had success in this area? Peter

      P Offline
      P Offline
      Peter Jones
      wrote on last edited by
      #2

      After more searches, I found it. ::SendMessage(HWND_TOPMOST, WM_TIMECHANGE, 0, 0); Peter

      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