![]() |
|
#1
|
|||
|
|||
combox close on enter in vc++ dialogHello everyone,
I am new here and also new to vc++. I am making a dialog application using vc++. in one dialog, i have removed the "OK" and "CANCEL" button, only left the "red cross" at the right upper corner of the dialog. because i only want to use it to close the dialog. now i add a combo box into the dialog. each time when i select the combo box and press the "enter", the whole dialog close !!! does anyone know how to disable this feature? i only want to close the dialog by click the "red cross". Thanks a lot. neo. |
|
#2
|
||||
|
||||
Re: combox close on enter in vc++ dialogNot sure what you are trying to accomplish... [some will say this diverges from standard GUI design(s), unless this is for a special purpose, custom app.]
Pressing 'Enter' is the same as the default action for the 'Ok' button, as mentioned here in the Microsoft info: Quote:
However, you can prevent that behavior by overriding the dialog's OnOk() as an empty function call. __________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
Recent GIDBlog
Python ebook by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Accessing values from a different dialog | steph | MS Visual C++ / MFC Forum | 11 | 21-Jul-2006 18:55 |
| getting data from dialog before close | custo | MS Visual C++ / MFC Forum | 6 | 23-Mar-2006 23:58 |
| Help! Some basal questions about MFC | xutingnjupt | MS Visual C++ / MFC Forum | 1 | 05-Dec-2004 03:38 |
| Anyone can write a program code for this??? | chriskan76 | C Programming Language | 1 | 19-Oct-2004 20:25 |
| Array..... | chriskan76 | C Programming Language | 4 | 18-Oct-2004 14:19 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The