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

Function get_submenu

src/plugin/Plugin.cpp:375–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

373}
374
375HMENU get_submenu(int item_id) {
376 auto dspellcheck_menu = get_this_plugin_menu();
377 if (dspellcheck_menu == nullptr)
378 return nullptr;
379
380 MENUITEMINFO mif;
381
382 mif.fMask = MIIM_SUBMENU;
383 mif.cbSize = sizeof(MENUITEMINFO);
384
385 bool res = GetMenuItemInfo(dspellcheck_menu, item_id, FALSE, &mif) == FALSE;
386 if (res)
387 return nullptr;
388
389 return mif.hSubMenu;
390}
391
392HMENU get_langs_sub_menu() { return get_submenu(get_func_item()[action_index[Action::quick_language_change]].cmd_id); }
393

Callers 1

get_langs_sub_menuFunction · 0.85

Calls 1

get_this_plugin_menuFunction · 0.85

Tested by

no test coverage detected