Relative Content

Tag Archive for c++windowswinapiwindows-shell

IContextMenu::QueryContextMenu returns extra elements

When we call IContextMenu::QueryContextMenu we pass it arguments such as idCmdFirst and idCmdLast. If we pass 1 as idCmdFirst and 5 as idCmdLast, then as far as I know the menu identifiers should be in the range from 1 to 5.