1 int i = 0; 2 AcEdCommandIterator* iter = nullptr; 3 for (iter = acedRegCmds->iterator(); !iter->done(); iter->next()) 4 { 5 std::wostringstream oss; 6 oss << std::setiosflags(std::ios::left); 7 8 oss << i++ << _T(" "); 9 oss << std::setw(30) << _T("commandGroup") 10 << iter->commandGroup() << _T(" "); 11 12 const AcEdCommand* cmd = iter->command(); 13 oss << std::setw(30) << _T("commandFlags") 14 << cmd->commandFlags() << _T(" "); 15 oss << std::setw(30) << _T("functionAddr") 16 << cmd->functionAddr() << _T(" "); 17 oss << std::setw(30) << _T("UIContext") 18 << cmd->UIContext() << _T(" "); 19 oss << std::setw(30) << _T("functionCode") 20 << cmd->functionCode() << _T(" "); 21 oss << std::setw(30) << _T("globalName") 22 << cmd->globalName() << _T(" "); 23 oss << std::setw(30) << _T("localName") 24 << cmd->localName() << _T(" "); 25 oss << std::setw(30) << _T("defaultCommandVersion") 26 << cmd->defaultCommandVersion() << _T(" "); 27 28 oss.flush(); 29 AfxMessageBox(oss.str().c_str()); 30 break; 31 }