shell32: Use a MENUEX resource for the context menu.

This ensures the submenus can be given ids below FCIDM_SHVIEWLAST and
so don't get stripped out by SHELL_MergeMenus().

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Huw Davies 2017-04-19 13:13:41 +01:00 committed by Alexandre Julliard
parent 734dc8f200
commit a33c958ee2
1 changed files with 4 additions and 4 deletions

View File

@ -35,11 +35,11 @@ END
/*
shellview background menu
*/
MENU_002 MENU
MENU_002 MENUEX
BEGIN
POPUP ""
BEGIN
POPUP "&View"
POPUP "&View", 0x40 /* Submenus need ids <= FCIDM_SHVIEWLAST so they don't get removed by MergeMenu */
BEGIN
MENUITEM "Lar&ge Icons", FCIDM_SHVIEW_BIGICON
MENUITEM "S&mall Icons", FCIDM_SHVIEW_SMALLICON
@ -47,7 +47,7 @@ BEGIN
MENUITEM "&Details", FCIDM_SHVIEW_REPORTVIEW
END
MENUITEM SEPARATOR
POPUP "Arrange &Icons"
POPUP "Arrange &Icons", 0x41
BEGIN
MENUITEM "By &Name", 0x30 /* column 0 */
MENUITEM "By &Type", 0x32 /* column 2 */
@ -63,7 +63,7 @@ BEGIN
MENUITEM "Paste", FCIDM_SHVIEW_INSERT
MENUITEM "Paste as Link", FCIDM_SHVIEW_INSERTLINK
MENUITEM SEPARATOR
POPUP "New"
POPUP "New", 0x42
BEGIN
MENUITEM "New &Folder", FCIDM_SHVIEW_NEWFOLDER
MENUITEM "New &Link", FCIDM_SHVIEW_NEWLINK