Click to See Complete Forum and Search --> : Hooking Context menus?
xjordyx
September 17th, 2007, 03:17 PM
i'd like to be able to hook the right click context menus for a window so i can append my own menu item to the bottom, creating the menu isnt the problem its finding out when the right click menu has been activated and the window handle of the menu that i'm unsure of
kirants
September 17th, 2007, 03:42 PM
Before a menu is displayed, the owner window should receive a WM_INITMENUPOPUP message. This is a good place to customize it.
xjordyx
September 17th, 2007, 04:27 PM
so just a message hook :-/ i didn't think it would be quite so simple but thank you.
kirants
September 17th, 2007, 04:30 PM
Is it a window belonging to another application ?
xjordyx
September 17th, 2007, 04:49 PM
yes it is
codeguru.com
Copyright Internet.com Inc., All Rights Reserved.