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


April 23rd, 1999, 02:10 PM
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
malicon@frii.com
(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)

ric
April 23rd, 1999, 03:05 PM
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!

April 23rd, 1999, 03:10 PM
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.