How to modify Global System Menu?
-
Well, even Jijo raj wasn't able to do that, so far... :-D
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
Jijo, I never tried this can't you use systemwide api hooking?
-Sarath. "Great hopes make everything great possible" - Benjamin Franklin
My blog - Sharing My Thoughts
yeah! That seems to be a possibility. I could hook
GetSystemMenu()
and add another system wide window message hook forWM_COMMAND
and handle the message. But I strongly feels that there is some easy way to do it. Well, thanks Sarath for the thought. Ofcourse you always "Shares your thought"! ;) Regards, Jijo._____________________________________________________ http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.
-
I did expect you'll reply with some funny quotes. :laugh: Regards, Jijo.
_____________________________________________________ http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.
This time I have no technical answer, unfortunately... :sigh:
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
This time I have no technical answer, unfortunately... :sigh:
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles] -
How to append a new menu item to global system menu. I.e. to system menu of all applications. Well, for a single application it can be done easly by using
GetSystemMenu()
. But how to do it system wide? I saw one application doing the same. When i checked the dlls, of the application I could see theMouseHookProc()
in exported functions and I guess that its doing it by a global mouse hook. But after long R&D I couldn't figure out how. Any hints guys? Thanks & Regards, Jijo._____________________________________________________ http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.
-
How to append a new menu item to global system menu. I.e. to system menu of all applications. Well, for a single application it can be done easly by using
GetSystemMenu()
. But how to do it system wide? I saw one application doing the same. When i checked the dlls, of the application I could see theMouseHookProc()
in exported functions and I guess that its doing it by a global mouse hook. But after long R&D I couldn't figure out how. Any hints guys? Thanks & Regards, Jijo._____________________________________________________ http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.
I haven't tried it with 'Mouse Hook', but did with 'Windows Procedure Hook'. Installed a hook for WH_CALLWNDPROC (Windows procedure) and handled the 'WM_INITMENU' message in the hook. Once you get the window handle in the hook, I hope you don't need any more clues.... :cool:
-Malli...! :rose:****
-
This time I have no technical answer, unfortunately... :sigh:
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
[My articles]You can ask of your site. :-D
Of one Essence is the human race thus has Creation put the base One Limb impacted is sufficient For all Others to feel the Mace (Saadi )
-
I haven't tried it with 'Mouse Hook', but did with 'Windows Procedure Hook'. Installed a hook for WH_CALLWNDPROC (Windows procedure) and handled the 'WM_INITMENU' message in the hook. Once you get the window handle in the hook, I hope you don't need any more clues.... :cool:
-Malli...! :rose:****
-
What about Using EnumWindows to get all top level windows and then modify the menu? Also you will have to add hook for new window creation notifications. I dont know if it will work but just a thought..
Regards, Sandip.
That's also a possibility to experiment. I think, in order to handle the message, i've to add one message hook as well. isn't it? Well, thanks a lot Sandeep and my 5 points. ;) Regards, Jijo.
_____________________________________________________ http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.
-
That seems to be a cool Idea! Let me try it out. Thanks a lot malli, and please accept my 5 points. ;) Regards, Jijo.
_____________________________________________________ http://weseetips.com[^] Visual C++ tips and tricks. Updated daily.