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 ?