AcEdCommandStack 输出所有命令

作者: admin 分类: C++,CAD,ObjectARX 发布时间: 2021-02-26 18:56

https://blog.csdn.net/banbi8882/article/details/101082119

int i = 0;
         AcEdCommandIterator* iter = nullptr;
         for (iter = acedRegCmds->iterator(); !iter->done(); iter->next())
         {
             std::wostringstream oss;
             oss << std::setiosflags(std::ios::left);
 
             oss << i++ << _T("\n");
             oss << std::setw(30) << _T("commandGroup")
                 << iter->commandGroup() << _T("\n");
 
             const AcEdCommand* cmd = iter->command();
             oss << std::setw(30) << _T("commandFlags")
                 << cmd->commandFlags() << _T("\n");
             oss << std::setw(30) << _T("functionAddr")
                 << cmd->functionAddr() << _T("\n");
             oss << std::setw(30) << _T("UIContext")
                 << cmd->UIContext() << _T("\n");
             oss << std::setw(30) << _T("functionCode")
                 << cmd->functionCode() << _T("\n");
             oss << std::setw(30) << _T("globalName")
                 << cmd->globalName() << _T("\n");
             oss << std::setw(30) << _T("localName")
                 << cmd->localName() << _T("\n");
             oss << std::setw(30) << _T("defaultCommandVersion")
                 << cmd->defaultCommandVersion() << _T("\n");
 
             oss.flush();
             AfxMessageBox(oss.str().c_str());
             break;
         }

 

转载于:https://www.cnblogs.com/Yself/p/4768898.html

如果觉得我的文章对您有用,请随意赞赏。您的支持将鼓励我继续创作!

发表评论

标签云