Click to See Complete Forum and Search --> : HOWTO: override the destruction of a window by clicking 'enter'


Lyu ABE
April 6th, 1999, 04:59 AM
I would like to override the default function that destroys the current dialog when I press the Enter key. To avoid this, I have to create a useless default button and set the 'default' property to it. Any solution?

Karl
April 6th, 1999, 05:03 AM
Override OnOk, and don't call the base class

HTH.

K.

Ash to ash and clay to clay, if the enemy doesn't get you, your own folk may.

mihai
April 6th, 1999, 05:05 AM
Override the WM_COMMAND, send by default procedure with IDOK as parameter.
Sincerely Mihai

Lyu ABE
April 6th, 1999, 07:18 AM
It's working, many thanks...