This method is called by the framework when a keystroke translates to a nonsystem character. This method is called before the OnKeyUp method and after the OnKeyDown method are called. OnChar contains the value of the keyboard key being pressed or released. Because there is not necessarily a one-to-one correspondence between keys pressed and OnChar calls generated, the information in nFlags is generally not useful to applications. The information in nFlags applies only to the most recent call to the OnKeyUp method or the OnKeyDown method that precedes the call to OnChar.afx_msg void OnChar( UINT nChar, UINT nRepCnt, UINT nFlags );
UINT nChar,
UINT nRepCnt,
UINT nFlags );