create mfc dialog by template will drive you mad.
createmfcdialogbytemplatewilldriveyoumad.Ihaveadialogtemplateinresource,andihaveadialogclass,calledCMyDialog.Andnow,sometimes,ineedCMyDialogtobeamodeldialog(WS_POPUP),sometimesbeachildofanotherdialog(