leojose
January 16th, 2006, 04:43 AM
Hi all,
Here is the situation:
I have sub-classed a window and would like to get notification for 'Control key up' and 'Shift key up' events only.
My method:
monitor the WM_KEYUP events and check wParam for VK_CONTROL & VK_SHIFT
Why I don't like it:
The WM_KEYUP will be handled whenever a key is pressed. But I wan't to narrow it down to just the Control and Shift keys.
What I am looking for:
I read in MSDN that Ctrl, Shift, Alt etc. fall into System keys or Extended keys. Is there any Windows message that will signal only these type of events?
Here is the situation:
I have sub-classed a window and would like to get notification for 'Control key up' and 'Shift key up' events only.
My method:
monitor the WM_KEYUP events and check wParam for VK_CONTROL & VK_SHIFT
Why I don't like it:
The WM_KEYUP will be handled whenever a key is pressed. But I wan't to narrow it down to just the Control and Shift keys.
What I am looking for:
I read in MSDN that Ctrl, Shift, Alt etc. fall into System keys or Extended keys. Is there any Windows message that will signal only these type of events?