CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Masked ComboBox

  1. #1
    Join Date
    May 1999
    Location
    Columbus, Ohio, USA
    Posts
    32

    Masked ComboBox

    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

  2. #2
    Join Date
    Apr 1999
    Location
    Frankfurt, Germany
    Posts
    113

    Re: Masked ComboBox

    Did You try the CBN_EDITCHANGE message?


  3. #3
    Join Date
    May 1999
    Location
    Columbus, Ohio, USA
    Posts
    32

    Re: Masked ComboBox

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured