Hi everyone.


I'm working on a subclassed CEdit control (actually the well-known CInPlaceEdit found here at Codeguru) and I have a very simple (hopefully) question about the OnChar method.


How do I tell if the Shift key is also pressed? I want to process the Tab key and similarly I want to process the Shift+Tab key combination.


There is this UINT nFlags thingy but does that tell me anything I want to know?


I've tried to use GetKeyState( VK_SHIFT ) and GetAsyncKeyState( VK_SHIFT ) but somehow that also returns nonzero if the shift key has been pressed at any time during the lifetime of the control.


Any ideas?


With best regards,

Daniel B. Sig.