Skip to content

Commit

Permalink
[SHELL32] Remove view related items from File menu (reactos#7429)
Browse files Browse the repository at this point in the history
CORE-19778
  • Loading branch information
whindsaks authored Oct 8, 2024
1 parent ee5338f commit f4cb10f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions dll/win32/shell32/CDefView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1807,11 +1807,15 @@ HRESULT CDefView::FillFileMenu()
return hr;

// TODO: filter or something
if (!selcount)
{
DeleteMenu(hmenu, FCIDM_SHVIEW_VIEW, MF_BYCOMMAND);
DeleteMenu(hmenu, FCIDM_SHVIEW_ARRANGE, MF_BYCOMMAND);
DeleteMenu(hmenu, FCIDM_SHVIEW_REFRESH, MF_BYCOMMAND);
}

Shell_MergeMenus(hFileMenu, hmenu, 0, 0, 0xFFFF, MM_ADDSEPARATOR | MM_SUBMENUSHAVEIDS);

::DestroyMenu(hmenu);

return S_OK;
}

Expand Down

0 comments on commit f4cb10f

Please sign in to comment.