jjzjj

QueryContextMenu

全部标签

c++ - IContextMenu::QueryContextMenu 被调用,但 IContextMenu::InvokeCommand 没有

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

windows - 在 windows 7 x64 的 shell 扩展 dll 中不调用 InvokeCommand

我的shell扩展代码在Windows7下运行良好。但是,在Windowsserver2008x64或windows7x64中,当SelectedFiles的数量超过16个时,调用的命令函数不会被调用。当SelectedFiles个数小于17时,一切正常;调用顺序:QueryContextMenu->Initialize->GetCommandString->InvokeCommand但是当SelectedFiles的个数超过16个时,InvokeCommand不会被调用;调用顺序:Initialize(thereturnedvalueofDragQueryFileis16)->Que