MCPcopy Create free account
hub / github.com/derceg/explorerplusplus / AddMenuEntries

Method AddMenuEntries

Explorer++/Explorer++/SearchDialog.cpp:618–644  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

616}
617
618void SearchDialog::AddMenuEntries(PCIDLIST_ABSOLUTE pidlParent,
619 const std::vector<PITEMID_CHILD> &pidlItems, DWORD_PTR dwData, HMENU hMenu)
620{
621 UNREFERENCED_PARAMETER(dwData);
622
623 unique_pidl_absolute pidlComplete(ILCombine(pidlParent, pidlItems.front()));
624 SFGAOF itemAttributes = SFGAO_FOLDER;
625 GetItemAttributes(pidlComplete.get(), &itemAttributes);
626
627 TCHAR szTemp[64];
628
629 if ((itemAttributes & SFGAO_FOLDER) == SFGAO_FOLDER)
630 {
631 LoadString(GetInstance(), IDS_SEARCH_OPEN_FOLDER_LOCATION, szTemp, SIZEOF_ARRAY(szTemp));
632 }
633 else
634 {
635 LoadString(GetInstance(), IDS_SEARCH_OPEN_FILE_LOCATION, szTemp, SIZEOF_ARRAY(szTemp));
636 }
637
638 MENUITEMINFO mii;
639 mii.cbSize = sizeof(MENUITEMINFO);
640 mii.fMask = MIIM_STRING | MIIM_ID;
641 mii.wID = MENU_ID_OPEN_FILE_LOCATION;
642 mii.dwTypeData = szTemp;
643 InsertMenuItem(hMenu, 1, TRUE, &mii);
644}
645
646BOOL SearchDialog::HandleShellMenuItem(PCIDLIST_ABSOLUTE pidlParent,
647 const std::vector<PITEMID_CHILD> &pidlItems, DWORD_PTR dwData, const TCHAR *szCmd)

Callers

nothing calls this directly

Calls 3

GetItemAttributesFunction · 0.85
LoadStringFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected