Click to See Complete Forum and Search --> : OnKeyUp?


August 12th, 1999, 05:25 AM
I'm new at MFC programming and I have a question. When I try to add OnKeyUp/OnKeyDown they don't work! I tried to add focus to window using SetFocus() but it doesn't help! when I press a key on keyboard these function do not open !!! but i have ON_WM_KEYUP/DOWN Compiler shows no errors. Where is the error ?

Burlacu Ovidiu
August 12th, 1999, 06:57 AM
These functions are not called if u press specials key(shift, crl, alt, enter, tab, etc)
Let me know if this help u
Regards,
Ovidiu

Uli Hecker
August 12th, 1999, 07:21 AM
Check your online help for

ON_WM_SYSKEYUP/ON_WM_SYSKEYDOWN and OnSysKeyUp/OnSysKeyDown; special keys, like arrow keys etc, are handled by this functions.

Uli