This improves the behavior of the Cancel function. Previously, when pressing the Cancel button in the bottom bar, a path was returned via HasResult() if the dialog type was IFD_DIALOG_DIRECTORY, the same as when Open was pressed.
Also the ESCAPE key can now be pressed to cancel the dialog.
Builds on #17.
This improves the behavior of the Cancel function. Previously, when pressing the Cancel button in the bottom bar, a path was returned via
HasResult()
if the dialog type wasIFD_DIALOG_DIRECTORY
, the same as whenOpen
was pressed.Also the ESCAPE key can now be pressed to cancel the dialog.