Share

CAdUiFileDialog::CancelEditorCommand

C++

void CancelEditorCommand();

Description

Call this method upon returning from an interactive command that was canceled in the Drawing Editor. This function is intended for use only after a call to BeginEditorCommand().

This routine sets the command state to kAdUiCommand_canceled and then calls the dialog's OnCancel() method to terminate the dialog.

Example:

    BeginEditorCommand();
    if (DoMyInteractiveCommand())
        CompleteEditorCommand();
    else
        CancelEditorCommand();

Links

CAdUiFileDialog

Was this information helpful?