How to get Virutal Key code from Edit control

  • Thread starter Thread starter Kelvin
  • Start date Start date
K

Kelvin

Hi all,

Do anyone know how to get the virtual key VK code form Edit control in
visual C++, such that I can check the user's input is correct or not. Since I
am newbie in visual C++.

Thanks,
 
Do anyone know how to get the virtual key VK code form Edit control in
visual C++, such that I can check the user's input is correct or not.

The virtual key code is passed in the WM_KEYDOWN notification
messages.

Dave
 
Kelvin said:
Hi all,

Do anyone know how to get the virtual key VK code form Edit control in
visual C++, such that I can check the user's input is correct or not.
Since I am newbie in visual C++.

It sounds like you want to know the string in the edit control, rather than
each keypress. In that case just use GetWindowText and don't worry about
virtual key codes.
 
Back
Top