Modifying User Input in an Edit Control
Posted on 2003-02-24
I have made modified control class based on the Edit Control. My main objective is to limit the user to only enter hexidecimal digits (0-9A-F). I have successfully done this by making my own WM_CHAR message handler. What I want to do now is allow the user to enter a-f but have the message handler interpret it as A-F (i.e. make all the characters capital letters). I have tried the following and it does not work.
void CMyEdit::OnChar(UINT nChar, UINT nRepCnt, UINT nFlags)
This is only a subset of the actual code. Are there any other ways to accomplish this.