Edit box problem.
-
I added one edit control in my dialog. I restricted to number only. It is a normal edit box. In properties I made it to number only. In normal key press event user can not enter other than numbers. But when i given to tester, he is trying to copying the data from else where and pasteing in this edit box. :D Any simple way to restrict this copy and paste one. (Other than creating our own deriving CCustomEdit). any clues friends...:)
Nice talking to you. :-O
If you judge people, you have no time to love them. -- Mother Teresa -
I added one edit control in my dialog. I restricted to number only. It is a normal edit box. In properties I made it to number only. In normal key press event user can not enter other than numbers. But when i given to tester, he is trying to copying the data from else where and pasteing in this edit box. :D Any simple way to restrict this copy and paste one. (Other than creating our own deriving CCustomEdit). any clues friends...:)
Nice talking to you. :-O
If you judge people, you have no time to love them. -- Mother TeresaYou can try EN_CHANGE or EN_UPDATE to validate the text in the control
Do your Duty and Don't expect the Result
-
You can try EN_CHANGE or EN_UPDATE to validate the text in the control
Do your Duty and Don't expect the Result
Thanks it is working fine. Done:D. I used EN_UPDATE.
Nice talking to you. :-O
If you judge people, you have no time to love them. -- Mother Teresa