Edit Control!! Doubt!!
-
Hi All, Win32 console based application How to lock a Edit control such that it accepts only AlphaNumeric datas? I tried to get WM_COMMAND and then EN_CHANGE, and remove the invalid data and placed it back in the Edit control by using Sendmessage and SetDlgItemText. But, the cursor moves to the begin of the Edit control? How to move to the cursor back to the end of the text in the Edit Control?? Or else, is there is any other way to do that? With Best Regards, A.Ilamparithi
-
Hi All, Win32 console based application How to lock a Edit control such that it accepts only AlphaNumeric datas? I tried to get WM_COMMAND and then EN_CHANGE, and remove the invalid data and placed it back in the Edit control by using Sendmessage and SetDlgItemText. But, the cursor moves to the begin of the Edit control? How to move to the cursor back to the end of the text in the Edit Control?? Or else, is there is any other way to do that? With Best Regards, A.Ilamparithi
Re try catching WM_CHAR message, if not a valid result set nChar to 0; Good Luck.
-
Re try catching WM_CHAR message, if not a valid result set nChar to 0; Good Luck.
Hi, What is nChar?? I am not able to catch the WM_CHAR message. Control is not coming there. Instead it is going to WM_COMMAND. How to do it? With Thanks, A.Ilamparithi