VC++ Programming UESTC Chapter 7 The modeless dialog and Windows Common Dialogs o Create a modal CFileDialog int nModal=dlg File. DoModal( if((n== IdCancel)&&(dlgfile m bDeleteAlD) str Message Format( Are you sure you want to delete all %os files? dIgFile. m strFilename)VC++ Programming @ UESTC 12 ⚫ Create a modal CFileDialog int nModal = dlgFile.DoModal(); if ((nModal == IDCANCEL) && (dlgFile.m_bDeleteAll)) { strMessage.Format( "Are you sure you want to delete all %s files?", dlgFile.m_strFilename); Chapter 7 The Modeless Dialog and Windows Common Dialogs