summaryrefslogtreecommitdiff
path: root/include/m_genmenu.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-07-11 21:32:58 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-07-11 21:33:11 +0300
commitf719c8b921c7a46b76453476204224d40c682914 (patch)
treec6d92dc450893e7f5abe60c2046ec9c2d1e3db36 /include/m_genmenu.h
parent16ad355c8bdc438c3107ee3ba3ad0bf0b8c395fa (diff)
int hLangpack/m_hLang removed and replaced with HPLUGIN
Diffstat (limited to 'include/m_genmenu.h')
-rw-r--r--include/m_genmenu.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/m_genmenu.h b/include/m_genmenu.h
index 64c599121b..db2c362e2d 100644
--- a/include/m_genmenu.h
+++ b/include/m_genmenu.h
@@ -40,7 +40,7 @@ struct TMO_MenuItem
HICON hIcon;
HANDLE hIcolibItem;
};
- int langId;
+ const CMPluginBase *pPlugin;
MUUID uid;
};
@@ -50,10 +50,10 @@ struct TMO_MenuItem
#ifdef __cplusplus
struct CMenuItem : public TMO_MenuItem
{
- CMenuItem(const CMPluginBase &pPlugin)
+ CMenuItem(HPLUGIN _p)
{
memset(this, 0, sizeof(CMenuItem));
- this->langId = pPlugin.m_hLang;
+ this->pPlugin = _p;
}
};
#endif
@@ -107,7 +107,7 @@ EXTERN_C MIR_APP_DLL(HGENMENU) Menu_AddItem(int hMenuObject, TMO_MenuItem *pItem
// Adds new submenu
// Returns HGENMENU on success, or NULL on failure
-EXTERN_C MIR_APP_DLL(HGENMENU) Menu_CreateRoot(int hMenuObject, LPCWSTR ptszName, int position, HANDLE hIcoLib, int langId);
+EXTERN_C MIR_APP_DLL(HGENMENU) Menu_CreateRoot(int hMenuObject, LPCWSTR ptszName, int position, HANDLE hIcoLib, HPLUGIN pPlugin);
/////////////////////////////////////////////////////////////////////////////////////////
// process a WM_DRAWITEM message for user context menus v0.1.1.0+
@@ -254,7 +254,7 @@ EXTERN_C MIR_APP_DLL(HGENMENU) Menu_GetProtocolRoot(PROTO_INTERFACE *pThis);
/////////////////////////////////////////////////////////////////////////////////////////
// kills all menu items & submenus that belong to the language id given
-EXTERN_C MIR_APP_DLL(void) KillModuleMenus(int langId);
+EXTERN_C MIR_APP_DLL(void) KillModuleMenus(HPLUGIN pPlugin);
#endif // M_GENMENU_H__