| 373 | } |
| 374 | |
| 375 | HMENU 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 | |
| 392 | HMENU get_langs_sub_menu() { return get_submenu(get_func_item()[action_index[Action::quick_language_change]].cmd_id); } |
| 393 |
no test coverage detected