-
Virtual Keys :: MFC
Hi.
I would like to know how to determine when the user presses, say, 'z' *while* holding down one of the virtual keys, say Ctrl.
For example
// Ctrl + Z
I can use either OnKeyDown(...) and/or OnChar(...) to determine *either* Ctrl or z, but not both.
I am trying to implement an "undo" feature.
Thanks,
Kuphryn
-
I guess you could start your OnChar handler with a call to the api function GetAsyncKeyState()........and specify VK_CONTROL..
I havent tested it...but I think it would work