if (condition) { open dialog. if user clicked OK, do something else do something else }
AfxMessageBox()
CDialog
CDialog::DoModal()
ShowWindow()
CDialog::OnInitDialog()
DoModal()
if (condition) { CMyDialog Dlg; if (Dlg.DoModal() == IDOK) { // OK pressed } else { // Dialog cancelled } }
#include "CMyDialog.h"
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)