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,
David Lowndes - 07 Apr 2008 12:07 GMT
>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
Ben Voigt [C++ MVP] - 07 Apr 2008 17:56 GMT
> 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.
> Thanks,