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

Thread: ComboBox Help

  1. #1
    Guest

    ComboBox Help

    How do I trap the enter key? The docs, with VC++ 6.0, said to do it with ON_CBN_SELENDOK message handler but it didn't produce a desired result is there an alternative?


    Shawn
    [email protected]
    (I Can't logon because I have cookies turned off for a reason and if I do a check to see how many cookies come across it was suprising to see 5 on one page)


  2. #2
    Join Date
    Apr 1999
    Posts
    306

    Re: ComboBox Help

    Just empty your function OnOK() {} <--- like that, and then define a function which will respond only to clicking OK button. Like:

    void CMyDialog::OnClickedOK()
    {
    CDialog::OnOK();
    }

    And by the way, choose your catagory more carefully!


  3. #3
    Guest

    Re: ComboBox Help

    You assume that it is in a dialog, which it is not, so my original question still stands, Catagory to me is correct, since I am not dealing with a dialog just a control on an advanced lvl, I apoligize for putting it under Advanced ui, it is what it defaults to.


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