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("\n"); 9 oss << std::setw(30) << _T("commandGroup") 10 << iter->commandGroup() << _T("\n"); 11 12 const AcEdCommand* cmd = iter->command(); 13 oss << std::setw(30) << _T("commandFlags") 14 << cmd->commandFlags() << _T("\n"); 15 oss << std::setw(30) << _T("functionAddr") 16 << cmd->functionAddr() << _T("\n"); 17 oss << std::setw(30) << _T("UIContext") 18 << cmd->UIContext() << _T("\n"); 19 oss << std::setw(30) << _T("functionCode") 20 << cmd->functionCode() << _T("\n"); 21 oss << std::setw(30) << _T("globalName") 22 << cmd->globalName() << _T("\n"); 23 oss << std::setw(30) << _T("localName") 24 << cmd->localName() << _T("\n"); 25 oss << std::setw(30) << _T("defaultCommandVersion") 26 << cmd->defaultCommandVersion() << _T("\n"); 27 28 oss.flush(); 29 AfxMessageBox(oss.str().c_str()); 30 break; 31 }
时间: 2024-10-13 11:20:07