CompuServe Messages

no WM_KEYDOWN msgs

    09-Jul-94 11:15:59
Fm: Ron Bass 75060,3371
To: Phil Coveney 76110,107
Phil! >> OK, I can't refuse the focus–I'll handle keystrokes. So I used ClassWiz to put in OnKeyDown and OnSysKeyDown message handlers in CMyWindow–but they never get called. I use Spy and verify that the WM_KEYDOWN message is being sent to my CMyWindow, but I don't get a break at the breakpoint I set in the handlers above, nor does any debug trace output get printed–these handlers just ain't getting called. So what's a boy to do? Anybody got any clues as to either of the above? Add a message handler for WM_CHAR. The framework "pre-translates" keystroke messages when an ASCII character would be generated, and sends this message instead of WM_KEYDOWN. hth — Ron