MCPcopy Create free account
hub / github.com/WinMerge/winmerge / RemoveMenuItemsInRangeRecursive

Function RemoveMenuItemsInRangeRecursive

Src/FileFilterHelperMenu.cpp:46–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46static void RemoveMenuItemsInRangeRecursive(CMenu* pMenu, UINT idStart, UINT idEnd)
47{
48 TraverseMenuRecursive(pMenu, [idStart, idEnd](CMenu* pMenu, int index, UINT id)
49 {
50 if (id >= idStart && id <= idEnd)
51 pMenu->RemoveMenu(index, MF_BYPOSITION);
52 });
53}
54
55static void RemoveTrailingSeparator(CMenu* pMenu)
56{

Callers 2

ShowMenuMethod · 0.85
ShowPropMenuMethod · 0.85

Calls 2

TraverseMenuRecursiveFunction · 0.85
RemoveMenuMethod · 0.80

Tested by

no test coverage detected