I know that @CTLBTNDEFAULT is the flag used to specify the default button on a dialog...
Is there a flag that can be used to designate a *cancel* button as well?
Use a control ID of 2 for a CANCEL button and a control ID of 1 for an OK button. In your handler respond to ID 2 by closing the dialog. That way the escape key will work as well.
Paul.
Got it!