Cancels the specified dialog by sending it a CANCEL message, which in most cases is the same as pressing the cancel button. You should only call this command from an onDialog event handler (see App.setNotify).
First available in version 3.0 build 2039.
hwnd - Window handle of the dialog to be cancelled.
No output parameters.
When this method is called synchronously, a return object containing the output parameters is returned to the caller immediately.
Using App.setNotify to enable the onDialog event causes all dialogs that are children of your application to start in hidden mode so they can be cancelled or confirmed without becoming visible. Any dialogs that you don't handle by calling App.cancelDialog or App.confirmDialog must be displayed by a call to App.showDialog or they will remain hidden and inaccessible to your users.
This example demonstrates how to automatically cancel any Print dialog opened by an application. We do this by handling onDialog events generated by ssCore.App.setNotify and watching for dialogs with a title of "Print". Any dialog that doesn't have the correct title is simply displayed using ssCore.App.showDialog.
var a = return_obj.result.split(",");
var hwndDialog = a;
var isChild = a;
var captionDialog = a;
var captionParent = a;
// only mess with dialogs we own (our children)
if (isChild == "TRUE")
if (captionDialog == "Print")