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. Is it possible to modify the systray clock menu?

Is it possible to modify the systray clock menu?

Scheduled Pinned Locked Moved C / C++ / MFC
question
4 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.
  • M Offline
    M Offline
    mid 5741
    wrote on last edited by
    #1

    I would like to modify the menu that pops up when the mouse is right-clicked on the clock in the system tray. I want to add another entry below "Customize Notifications..." in the menu. Is this possible? If so, please point me in the right direction.

    P 1 Reply Last reply
    0
    • M mid 5741

      I would like to modify the menu that pops up when the mouse is right-clicked on the clock in the system tray. I want to add another entry below "Customize Notifications..." in the menu. Is this possible? If so, please point me in the right direction.

      P Offline
      P Offline
      Perspx
      wrote on last edited by
      #2

      I assume you would have to use DLL injection for this and add your own menu item into the clock menu from your injected DLL.. --PerspX

      M 1 Reply Last reply
      0
      • P Perspx

        I assume you would have to use DLL injection for this and add your own menu item into the clock menu from your injected DLL.. --PerspX

        M Offline
        M Offline
        mid 5741
        wrote on last edited by
        #3

        I already had a DLL injected into the clock, but how do I trap the popup of the menu and modify it? Do I intercept WM_NOTIFY messages? -- modified at 9:34 Wednesday 4th July, 2007 I figured it out. In my hooked WndProc(), I needed to return DefWindowProc() on WM_NCHITTEST rather than CallWindowProc(). Once I did that, I was getting WM_RBUTTONUP and that's the place to show the context menu.

        P 1 Reply Last reply
        0
        • M mid 5741

          I already had a DLL injected into the clock, but how do I trap the popup of the menu and modify it? Do I intercept WM_NOTIFY messages? -- modified at 9:34 Wednesday 4th July, 2007 I figured it out. In my hooked WndProc(), I needed to return DefWindowProc() on WM_NCHITTEST rather than CallWindowProc(). Once I did that, I was getting WM_RBUTTONUP and that's the place to show the context menu.

          P Offline
          P Offline
          Perspx
          wrote on last edited by
          #4

          OK good :) glad I could help --PerspX

          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