|
[code]//命令屏蔽
class CEditReactor : public ACEditorReactor
{
virtual void commandWillStart(const ACHAR* cmdStr)
{
if (CString(_T("MOVE")) == cmdStr)
acedPostCommand(_T("CANCELCMD"));
}
}
//重命名
AcEdCommand* pCmd = acedRegCmds->lookupGlobalCmd(_T("default_command"));
acedRegCmds->addCommand(_T("group_name"), _T("new_command"), _T("new_command"), pCmd->commandFlags(), pCmd->functionAddr());
[/code] |
|