Hey,
I can't figure out how you would use the vk's to get a common short cut, like ctrl+v. The virtual key for control is just VK_CONTROL, but letters don't have vk's. Should I be doing this a different way?
Thanks
Hey,
I can't figure out how you would use the vk's to get a common short cut, like ctrl+v. The virtual key for control is just VK_CONTROL, but letters don't have vk's. Should I be doing this a different way?
Thanks
It just so happens that the virtual key codes for 0 - 9 and A - Z correspond to their ASCII codes.
0 --> '0' = 0x30
1 --> '1' = 0x31
...
A --> 'A' = 0x41
B --> 'B' = 0x42
...
If for example it's an edit control, it's window procedure will recieve messages like WM_PASTE, WM_CUT, WM_UNDO. There are also keyboard accelerators which are like 'shortcuts' http://msdn2.microsoft.com/en-us/library/ms645526.aspx
Thanks, your very helpful you know that.