Good day!
I make MFC Application. I should catch the input to editbox and forbid to appear some symbols, for example, -,+,*,/. How can I do it?
Thanks.
Good day!
I make MFC Application. I should catch the input to editbox and forbid to appear some symbols, for example, -,+,*,/. How can I do it?
Thanks.
Subclass the edit box, and then over-ride PreTranslateMsg(). Then just catch the WM_CHAR messages. Evaluate the WM_CHAR message, and see if the character is one you want to catch or not.
Sorry but where can I read more detail about this matter?
And can I catch keypressing on other programs?
May be some tutorial?
I dont know of any places off hand where you can learn more info on this. Maybe codeproject or codeguru.
The function you're interested in is SetWindowLong()