flyingcowofdoom
April 21st, 2005, 04:11 PM
Hi,
I would like to make an edit box that will only accept numerical characters without using MFC. I know that I can do it by checking the EN_UPDATE message and getting the window's text, but I was wondering if there was a way to check each keystroke and cancel it if it is non-numeric. Didn't know if there was an easy way to do this. TIA!
--Chris
I would like to make an edit box that will only accept numerical characters without using MFC. I know that I can do it by checking the EN_UPDATE message and getting the window's text, but I was wondering if there was a way to check each keystroke and cancel it if it is non-numeric. Didn't know if there was an easy way to do this. TIA!
--Chris