HOWTO: override the destruction of a window by clicking 'enter'
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?
Re: HOWTO: override the destruction of a window by clicking 'enter'
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.
Re: HOWTO: override the destruction of a window by clicking 'enter'
Override the WM_COMMAND, send by default procedure with IDOK as parameter.
Sincerely Mihai
Re: HOWTO: override the destruction of a window by clicking 'enter'
It's working, many thanks...