I can't believe it, but I'm having trouble restricting input to an edit control. I only want the user to be able to enter in certain keys, but placing the restriction in WM_KEYDOWN didn't work:
The user can still enter anything into the edit control. How can I fix this problem?Code:case WM_KEYDOWN:
if (wParam!='I')
if (wParam!='V')
if (wParam!='X')
if (wParam!='L')
if (wParam!='C')
if (wParam!='M')
if (wParam!='~')
return 0;
break;