CAcModuleResourceOverride resOverride; char type[100]; int retCode; retCode = acedGetString(1, "\nTo choose frame type[parallel/aclinic]:", type); if(retCode = !RTNORM || type[0] == '\0'){ acutPrintf("\nInvalid type name."); return; } if(strcmp(type,"parallel")==0){ CWindoParaDlg dlg(CWnd::FromHandle(adsw_acadMainWnd())); dlg.DoModal();
..... } else if(strcmp(type,"aclinic")==0){ CWindoAclDlg dlg(CWnd::FromHandle(adsw_acadMainWnd())); dlg.DoModal();
...... } |