CCAknExEditorDialog* dialog = new (ELeave) CAknExEditorDialog(); dialog->ExecuteLD(R_AKNEXGRID_DIALOG_FILLINGORDER);
Dialogs are typically constructed and executed within the same block
of code. The dialog should not be placed on the cleanup stack when ExecuteLD()
is called; ExecuteLD()
guarantees that
if it leaves, the dialog will be deleted. ExecuteLD()
returns
once the user has exited the dialog with the reason why the dialog was dismissed,
typically ‘OK’ or ‘Cancel’.