[SHELL32] Fix the toolbar buttons in the file open dialog

CDefView: Make GetItemObject return an IContectMenu after setting itself as the site.
CDefViewBckgrndMenu: Make the inner context menu use the same site. Implement handling CMDSTR_VIEWLISTA and CMDSTR_VIEWDETAILSA.
CDefaultContextMenu: CMDSTR_VIEWLISTA and CMDSTR_VIEWDETAILSA shouldn't be handled in this class.
Fixes CORE-14327 and the two buttons that change the view mode
This commit is contained in:
Giannis Adamopoulos 2018-02-15 00:23:18 +02:00
parent e4aa45f63a
commit b97886ea9f
3 changed files with 25 additions and 15 deletions

View file

@ -47,9 +47,7 @@ struct _StaticInvokeCommandMap_
{ "Print", 0 }, // Unimplemented
{ "Preview", 0 }, // Unimplemented
{ "Open", FCIDM_SHVIEW_OPEN },
{ CMDSTR_NEWFOLDERA, FCIDM_SHVIEW_NEWFOLDER },
{ CMDSTR_VIEWLISTA, FCIDM_SHVIEW_LISTVIEW },
{ CMDSTR_VIEWDETAILSA, FCIDM_SHVIEW_REPORTVIEW }
{ CMDSTR_NEWFOLDERA, FCIDM_SHVIEW_NEWFOLDER }
};