MFC Keyboard input trouble
-
Hi! I have written:
void JEdit::OnKeyUp(UINT ch, UINT count, UINT flags)
{
switch ( ch ) {
case VK_BACK_SPACE:
{
....
}
....
}I wanted to detected backspace key, but the compiler says: "'VK_BACK_SPACE' : undeclared identifier" . What should I do? Thanks, Sovann. Why waste time learning while ignorence is instantaneous ? [Hobbes]
-
Hi! I have written:
void JEdit::OnKeyUp(UINT ch, UINT count, UINT flags)
{
switch ( ch ) {
case VK_BACK_SPACE:
{
....
}
....
}I wanted to detected backspace key, but the compiler says: "'VK_BACK_SPACE' : undeclared identifier" . What should I do? Thanks, Sovann. Why waste time learning while ignorence is instantaneous ? [Hobbes]
Use VK_BACK instead. :-) Regards, Alvaro
Well done is better than well said. -- Benjamin Franklin (I actually prefer medium-well.)
-
Hi! I have written:
void JEdit::OnKeyUp(UINT ch, UINT count, UINT flags)
{
switch ( ch ) {
case VK_BACK_SPACE:
{
....
}
....
}I wanted to detected backspace key, but the compiler says: "'VK_BACK_SPACE' : undeclared identifier" . What should I do? Thanks, Sovann. Why waste time learning while ignorence is instantaneous ? [Hobbes]
What should I do? Don't use it if it isn't defined. Use VK_BACK it is defined. Or just define it as 8. Thanks for the help, Bill