I’ve got a dialog in my application which is created using CreateStandardAlert/RunStandardAlert. Currently my ‘OK’ button is responding to the Return key, but Escape does nothing. Reading around the documentation it says that modal dialogs should respond to Escape, but this one isn’t. Do I need to specify filterProc in the call to RunStandardAlert (currently I’ve set it to 0) or is the problem most likely somewhere else in my code?
I’ve got a dialog in my application which is created using CreateStandardAlert/RunStandardAlert. Currently my
Share
I assume your dialog doesn’t have a Cancel button, which is what normally responds to Escape. I’m not sure if it is expected that an OK button should respond to Escape. You might be able to use
SetDialogCancelItemif you could find the item number of the button.