MCPcopy Create free account
hub / github.com/TASEmulators/fceux / ChangeContextMenuItemText

Function ChangeContextMenuItemText

src/drivers/win/window.cpp:2932–2941  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2930}
2931
2932void ChangeContextMenuItemText(int menuitem, string text, HMENU menu)
2933{
2934 MENUITEMINFO moo;
2935 moo.cbSize = sizeof(moo);
2936 moo.fMask = MIIM_TYPE;
2937 moo.cch = NULL;
2938 GetMenuItemInfo(menu, menuitem, FALSE, &moo);
2939 moo.dwTypeData = (LPSTR)text.c_str();
2940 SetMenuItemInfo(menu, menuitem, FALSE, &moo);
2941}
2942
2943void ChangeMenuItemText(int menuitem, string text)
2944{

Callers 1

UpdateContextMenuItemsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected