Commit 063a377d authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

shell32: Properly implement context menu verbs.

Enumerate "shell" registry key entries instead of hardcoding a list. Don't enumerate any entries unless all the files have the same type. Pass the correct type to ShellExecuteEx().
parent d1eed1c7
......@@ -93,10 +93,6 @@ MENU_SHV_FILE MENU
BEGIN
POPUP ""
BEGIN
MENUITEM "&Select" FCIDM_SHVIEW_OPEN
MENUITEM "E&xplore", FCIDM_SHVIEW_EXPLORE
MENUITEM "&Open", FCIDM_SHVIEW_OPEN
MENUITEM SEPARATOR
MENUITEM "C&ut", FCIDM_SHVIEW_CUT
MENUITEM "&Copy", FCIDM_SHVIEW_COPY
MENUITEM SEPARATOR
......@@ -161,6 +157,11 @@ STRINGTABLE
IDS_VIEW_LIST "&List"
IDS_VIEW_DETAILS "&Details"
IDS_VERB_EXPLORE "E&xplore"
IDS_VERB_OPEN "&Open"
IDS_VERB_PRINT "&Print"
IDS_VERB_RUNAS "Run as &Administrator"
IDS_CREATEFOLDER_DENIED "Unable to create new Folder: Permission denied."
IDS_CREATEFOLDER_CAPTION "Error during creation of a new folder"
IDS_DELETEITEM_CAPTION "Confirm file deletion"
......
......@@ -54,6 +54,11 @@
#define IDS_VIEW_LIST 27
#define IDS_VIEW_DETAILS 28
#define IDS_VERB_EXPLORE 30
#define IDS_VERB_OPEN 31
#define IDS_VERB_PRINT 32
#define IDS_VERB_RUNAS 33
#define IDS_RESTART_TITLE 40
#define IDS_RESTART_PROMPT 41
#define IDS_SHUTDOWN_TITLE 42
......
......@@ -391,8 +391,6 @@ typedef struct
#define FCIDM_SHVIEW_NEWFOLDER 0x7053
#define FCIDM_SHVIEW_REFRESH 0x7100 /* FIXME */
#define FCIDM_SHVIEW_EXPLORE 0x7101 /* FIXME */
#define FCIDM_SHVIEW_OPEN 0x7102 /* FIXME */
#define FCIDM_SHVIEWLAST 0x7fff
#define FCIDM_BROWSERFIRST 0xA000
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment