CompuServe Messages

no WM_KEYDOWN msgs

    11-Jul-94 15:44:17
Fm: Phil Coveney 76110,107
To: Ron Bass 75060,3371
Ron, >>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. Thanks for the help. It sounded like a really likely solution, but I'm sorry to report that neither the CMyWindow::OnChar() handler, nor its CFormView-derived parent's OnChar() handler, is being called. Again, Spy reports that WM_KEYDOWN is being sent to CMyWindow. Is the code that performs the pre-translation process to which you referred available to me (in \MFC\SRC)? Should this translation result in a WM_CHAR message being sent (Spy says none is), or should OnChar() be getting called directly? Is a particular WS_ style required for CMyWindow? (I'm grasping.) Again, thanks for any light. Phil C.