March 7th, 2013, 11:56 PM
Tired of googling. How to set a global hook to catch WM_MENUSELECT.
I have a global hook system that uses a dll.
I can install hooks for everything under the sun and my hookproc will see what I expect.
I cannot for the life of me however install a hook and get WM_MENUSELECT coming through to me.
I disparately need to spy on the user and know when file, save is selected, But no joy just yet.
In the below example the first argument for SetWindowHookEx is WH_MOUSE which gives me mouse messages
If I change that to WH_Keyboard, then I get keyboard stuff.
What do I do to see WM_MENUSELECT ? Which is supposed to show the actual menu text which would be perfecto
if only it would work for me.
Thanks in advance,
Tags for this Thread
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.