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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top