restricting chars in edit box
-
hi all, how to restrict the alphabets and numbers in edit box i cant use the PreTranslateMessage since i need to enable a listbox when i press the key .it will block it .how can it be done .can it be done by subclassing need help :) "Men never do evil so completely and cheerfully as when they do it from religious conviction" -Pascal
-
hi all, how to restrict the alphabets and numbers in edit box i cant use the PreTranslateMessage since i need to enable a listbox when i press the key .it will block it .how can it be done .can it be done by subclassing need help :) "Men never do evil so completely and cheerfully as when they do it from religious conviction" -Pascal
iirc (which i invariably do not) onchar message handler is something you might like to use Bryce --- To paraphrase Fred Dagg - the views expressed in this post are bloody good ones. --
Publitor, making Pubmed easy. http://www.sohocode.com/publitorOur kids books :The Snot Goblin, and Book 2 - the Snotgoblin and Fluff
-
hi all, how to restrict the alphabets and numbers in edit box i cant use the PreTranslateMessage since i need to enable a listbox when i press the key .it will block it .how can it be done .can it be done by subclassing need help :) "Men never do evil so completely and cheerfully as when they do it from religious conviction" -Pascal
chethu665 wrote:
how to restrict the alphabets and numbers in edit box i cant use the PreTranslateMessage since i need to enable a listbox when i press the key .it will block it .how can it be done .can it be done by subclassing
Check
EN_CHANGE
andEN_UPDATE
Notification messages Knock out 't' from can't, You can if you think you can :cool: -
hi all, how to restrict the alphabets and numbers in edit box i cant use the PreTranslateMessage since i need to enable a listbox when i press the key .it will block it .how can it be done .can it be done by subclassing need help :) "Men never do evil so completely and cheerfully as when they do it from religious conviction" -Pascal
Hi, To solve ur problem Following Article will help you. Just go through it. http://www.codeproject.com/editctrl/NumEditCtl.asp The secret of life is not enjoyment but education through experience. - Swami Vivekananda.
-
hi all, how to restrict the alphabets and numbers in edit box i cant use the PreTranslateMessage since i need to enable a listbox when i press the key .it will block it .how can it be done .can it be done by subclassing need help :) "Men never do evil so completely and cheerfully as when they do it from religious conviction" -Pascal
Derive it from (subclass)CMyEdit and override the WM_CHAR. Regards, FarPointer Blog:http://farpointer.blogspot.com/