在我的IContextMenu实现中COM服务器,QueryContextMenu被调用(可以通过日志查看)但是InvokeCommand没有。这是QueryContextMenu:HRESULTContexMenuImp::QueryContextMenu(HMENUhmenu,UINTindexMenu,UINTidCmdFirst,UINTidCmdLast,UINTuFlags){if(uFlags&CMF_DEFAULTONLY){//shouldn'thandlethissituation:LOG("IContextMenu::QueryContextMenu:(...,C