MCPcopy Create free account
hub / github.com/Predelnik/DSpellCheck / get_menu_item_text

Function get_menu_item_text

src/plugin/Plugin.cpp:344–349  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

342}
343
344static std::wstring get_menu_item_text(HMENU menu, UINT index) {
345 auto str_len = GetMenuString(menu, index, nullptr, 0, MF_BYPOSITION);
346 std::vector<wchar_t> buf(str_len + 1);
347 GetMenuString(menu, index, buf.data(), static_cast<int>(buf.size()), MF_BYPOSITION);
348 return buf.data();
349}
350
351static HMENU dspellcheck_menu_cached = nullptr;
352

Callers 1

get_this_plugin_menuFunction · 0.85

Calls 2

dataMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected