Click to See Complete Forum and Search --> : Masked ComboBox


William Dicks
May 7th, 1999, 08:58 AM
Hi all,

I am new here, although I have been browsing and using examples from the CodeGuru website. I must say that the code and examples are excellent. I do have a question that relates to combo boxes. I need a combobox control with its own maskable edit box. I have been trying to get a simple WM_CHAR message to get through to a combobox so that I can check each char according to a supplied mask such as would be supplied with a normal Masked Edit Control. I have been unsuccessful. All I can do is to wait for the EN_UPDATE message and then extract the complete text from the combobox edit control. Is there a way to check for individual characters? If possible, do you know of a masked combobox ocx perhaps?

William Dicks

***
"Delaying decisions" is too often a euphemism for
"avoiding thinking."
- Bjarne Stroustrup

Rudolf
May 10th, 1999, 01:52 AM
Did You try the CBN_EDITCHANGE message?

William Dicks
May 10th, 1999, 07:36 AM
I have tried CBN_EDITCHANGE. Unfortunately this message informs you of any change in the combobox edit area after the change has been made. And then you can retrieve the text in the edit area of the combobox. I have also tried CBN_EDITUPDATE, but then you are informed about the change before the screen is updated. Yet, again, you can only retrieve the whole text and not a singular char that was pressed. I am looking for way of specifically retrieving the last key press.

William Dicks

***
"Delaying decisions" is too often a euphemism for
"avoiding thinking."
- Bjarne Stroustrup