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

Function add_icons

src/plugin/Plugin.cpp:338–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336}
337
338void add_icons() {
339 static ToolbarIconsWrapper auto_check_icon{static_cast<HINSTANCE>(h_module), MAKEINTRESOURCE(IDI_AUTOCHECK), MAKEINTRESOURCE(IDI_AUTOCHECK_DARK),
340 MAKEINTRESOURCE(IDB_AUTOCHECK_BMP)};
341 ::SendMessage(npp_data.npp_handle, NPPM_ADDTOOLBARICON_FORDARKMODE, static_cast<WPARAM>(func_item[0].cmd_id), reinterpret_cast<LPARAM>(auto_check_icon.get()));
342}
343
344static std::wstring get_menu_item_text(HMENU menu, UINT index) {
345 auto str_len = GetMenuString(menu, index, nullptr, 0, MF_BYPOSITION);

Callers 1

beNotifiedFunction · 0.85

Calls 1

getMethod · 0.45

Tested by

no test coverage detected