CModifyDialog is derived from CAdUiBaseDialog and flashes when the following code “ok” closes the dialog.

void CModifyDialog::OnOK() { CAdUiBaseDialog::OnOK(); CModifyDialog::BeginEditorCommand(); NewEntityIfNeed() ; CModifyDialog::CompleteEditorCommand() ; }

The following code cannot be entered:

void CModifyDialog::OnOK() { CAdUiBaseDialog::OnOK(); //CModifyDialog::BeginEditorCommand(); NewEntityIfNeed() ; //CModifyDialog::CompleteEditorCommand() ; }

Solutions:

void CModifyDialog::OnOK() { CAdUiBaseDialog::OnOK(); CModifyDialog::BeginEditorCommand(); NewEntityIfNeed() ; CModifyDialog::CompleteEditorCommand(FALSE) ; }