I am trying to add an item to my web browser context menu:
IDR_MENU_HTML_POPUP MENU
BEGIN
POPUP "CustomPopup"
BEGIN
MENUITEM "Select All\tCTRL + A", 31
MENUITEM SEPARATOR
MENUITEM "Export", CUSTOM_MENU_EXPORT
MENUITEM SEPARATOR
MENUITEM "Find\tCTRL + F", 67
MENUITEM SEPARATOR
MENUITEM "Page Setup", 2004
MENUITEM "Print Preview", 2003
MENUITEM SEPARATOR
MENUITEM "Refresh\tF5", 2300
MENUITEM SEPARATOR
MENUITEM "View Source", 2139
MENUITEM "View XML", CUSTOM_MENU_VIEW_XML
MENUITEM "Open File Location", CUSTOM_MENU_OPEN_FILE_LOCATION
END
END
I already have an answer that I put together here (Is it not possible to add our own menu items on the CHtmlView context menu?) so in theory I expected it to work.
CUSTOM_MENU_OPEN_FILE_LOCATION
is defined as 3702
so it iw within this rule:
The menu IDs for all custom menu items fall between
IDM_MENUEXT_FIRST__
andIDM_MENUEXT_LAST__
for a maximum of 33 custom commands.
For some reson this menu item is disabled when I display the context menu.