AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
![]() If the two don’t line up, then CCompositeContextMenu::ReduceOrdinal won’t realize that the menu item the user selected corresponds to you. In our sample composite context menu, observe that CCompositeContextMenu::ReduceOrdinal relies on the component context menu handlers putting their menu IDs in the range idCmdFirst through idCmdFirst - return_value - 1. If the menu IDs do not lie in the range you described by the return value from IContextMenu::QueryContextMenu, then when the user chooses the menu item, the item ID will not map to your shell extension. My psychic powers tell me that you gave your menu item the wrong ID, or you returned the wrong value from IContextMenu::QueryContextMenu. Actually, given what you know about shell context menu hosting, you probably know the answer too. Since there really isn’t much information provided in this request, I was forced to invoke my psychic powers. Can anyone please let me know what the problem could be and how to fix it? I have implemented the IContextMenu shell extension, but when the user selects my custom menu item, my IContextMenu::InvokeCommand is never called. ![]() A customer reported a problem with their shell context menu extension.
0 Comments
Read More
Leave a Reply. |