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