方法一
LPDISPATCH object = m_wndMapCtrl.get_Object();
esriICommandPtr cmd;
cmd.CreateInstance(CLSID_ControlsSelectFeaturesTool);
cmd->OnCreate(object);
m_wndMapCtrl.putref_CurrentTool(cmd);
方法二
LPDISPATCH object = m_wndMapCtrl.get_Object();
esriICommandPtr cmd;
cmd.CreateInstance(CLSID_ControlsAddDataCommand);
cmd->OnCreate(object);
cmd->OnClick();