Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我实现IContextMenu2并希望在悬停菜单时填充菜单。在QueryContextMenu我得到论点idCmdFirst。然而HandleMenuMsg2,我没有得到这个论点。因此,我应该InsertMenu为 id 参数传递什么?
IContextMenu2
QueryContextMenu
idCmdFirst
HandleMenuMsg2
InsertMenu
我基本上存储了idCmdFirstfromQueryContextMenu并在HandleMenuMsg2.