trap a-z keys!!!
-
:confused:Hi all, I want to trap keys through A to Z I am using VK_A to VK_Z. but it does not recognize it at all.. is there any other way of doing it.. Please I need to do it..Any help and pointers are thoroughly appreciated.. Thanks in advance.. Himanshu
-
:confused:Hi all, I want to trap keys through A to Z I am using VK_A to VK_Z. but it does not recognize it at all.. is there any other way of doing it.. Please I need to do it..Any help and pointers are thoroughly appreciated.. Thanks in advance.. Himanshu
-
:confused:Hi all, I want to trap keys through A to Z I am using VK_A to VK_Z. but it does not recognize it at all.. is there any other way of doing it.. Please I need to do it..Any help and pointers are thoroughly appreciated.. Thanks in advance.. Himanshu
Like it says in winuser.h /* VK_0 thru VK_9 are the same as ASCII '0' thru '9' (0x30 - 0x39) */ /* VK_A thru VK_Z are the same as ASCII 'A' thru 'Z' (0x41 - 0x5A) */ Example...
void CMyCtrl::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags)
{
if( nChar == 'A' )
{
// Do Stuff
}
}