Edit Box messages
-
Hi I have few edit boxes in a Dialog window. Now I want to process the characters entered in each edit boxes. I dont want to use OnChar or OnKeyDown becouse it will process all those messages to the main window. I just want to process the messages only when user types something in the edit box. How can I do that. btw: this is for finding some unwanted characters like @#@#!@$ being entered in the certain edit box. Thanks Regards The Best Relligion is Science. Once you understand it, you will know God.
-
Hi I have few edit boxes in a Dialog window. Now I want to process the characters entered in each edit boxes. I dont want to use OnChar or OnKeyDown becouse it will process all those messages to the main window. I just want to process the messages only when user types something in the edit box. How can I do that. btw: this is for finding some unwanted characters like @#@#!@$ being entered in the certain edit box. Thanks Regards The Best Relligion is Science. Once you understand it, you will know God.
-
Hi, One solution is to implement the
WM_CHANGE
message. Each time it is called you will check the edit boxes... Well... I am a beginner ... -
Hi Thankyou. It will work. But I want to get each character by character entered into the edit box. Regards The Best Relligion is Science. Once you understand it, you will know God.
-
Hi I have few edit boxes in a Dialog window. Now I want to process the characters entered in each edit boxes. I dont want to use OnChar or OnKeyDown becouse it will process all those messages to the main window. I just want to process the messages only when user types something in the edit box. How can I do that. btw: this is for finding some unwanted characters like @#@#!@$ being entered in the certain edit box. Thanks Regards The Best Relligion is Science. Once you understand it, you will know God.
Enhanced Focus Edit Control with Input Filtering [^] My control does filtering of input (also via paste operations). IIRC, I could not get the
WM_CHAR
message to reflect from the control, so I used PreTranslateMessage on the edit control class itself, so I would only getWM_CHAR
messages for that control. Peace! -=- James Tip for inexperienced drivers: "Professional Driver on Closed Course" does not mean "your Dumb Ass on a Public Road"!
Articles -- Products: Delete FXP Files & Check Favorites -
Enhanced Focus Edit Control with Input Filtering [^] My control does filtering of input (also via paste operations). IIRC, I could not get the
WM_CHAR
message to reflect from the control, so I used PreTranslateMessage on the edit control class itself, so I would only getWM_CHAR
messages for that control. Peace! -=- James Tip for inexperienced drivers: "Professional Driver on Closed Course" does not mean "your Dumb Ass on a Public Road"!
Articles -- Products: Delete FXP Files & Check Favorites