Posted on 1997-05-30
How do you catch the WM_KEYDOWN even in a CDialog. I used class wizard and added the message map between WM_KEYDOWN and a function in my CDialog class. The problem is that it simply does not execute. I can catch other messages like
WM_RBUTTONDOWN, but not WM_KEYDOWN.
The only time I can get the WM_KEYDOWN handler to execute is if is handled by the CView class.
There's got to be a way to catch a process keystrokes that
are entered when a CDialog has the keyboard focus.