From 158a99ce05af062e0eec587be8db843eb3e7a397 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 22 May 2018 19:42:29 +0300 Subject: m_cluiframes.h => CMPlugin --- include/m_cluiframes.h | 2 +- plugins/Clist_modern/src/cluiframes.cpp | 1 + plugins/Clist_nicer/src/cluiframes.cpp | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/include/m_cluiframes.h b/include/m_cluiframes.h index 020f5fe688..2d2addf8c6 100644 --- a/include/m_cluiframes.h +++ b/include/m_cluiframes.h @@ -221,7 +221,7 @@ typedef struct tagCLISTFrame { //contactowner=advanced parameter __forceinline HGENMENU Menu_AddContextFrameMenuItem(TMO_MenuItem *pmi) -{ pmi->langId = hLangpack; +{ return (HGENMENU)CallService("CList/AddContextFrameMenuItem", 0, (LPARAM)pmi); } diff --git a/plugins/Clist_modern/src/cluiframes.cpp b/plugins/Clist_modern/src/cluiframes.cpp index 8d631fc505..96d90a67d0 100644 --- a/plugins/Clist_modern/src/cluiframes.cpp +++ b/plugins/Clist_modern/src/cluiframes.cpp @@ -735,6 +735,7 @@ static int CLUIFramesGetalClientFrame(void) static HGENMENU addFrameMenuItem(TMO_MenuItem *pmi, int frameid, bool bMain) { + pmi->langId = g_plugin.m_hLang; HGENMENU res = (bMain) ? Menu_AddMainMenuItem(pmi) : Menu_AddContextFrameMenuItem(pmi); if (pmi->pszService != nullptr) Menu_ConfigureItem(res, MCI_OPT_EXECPARAM, frameid); diff --git a/plugins/Clist_nicer/src/cluiframes.cpp b/plugins/Clist_nicer/src/cluiframes.cpp index 7af99edbd3..245206e3e9 100644 --- a/plugins/Clist_nicer/src/cluiframes.cpp +++ b/plugins/Clist_nicer/src/cluiframes.cpp @@ -553,6 +553,7 @@ int CLUIFramesGetalClientFrame(void) static HGENMENU addFrameMenuItem(TMO_MenuItem *pmi, int frameid, bool bMain) { + pmi->langId = g_plugin.m_hLang; HGENMENU res = (bMain) ? Menu_AddMainMenuItem(pmi) : Menu_AddContextFrameMenuItem(pmi); if (pmi->pszService != nullptr) Menu_ConfigureItem(res, MCI_OPT_EXECPARAM, frameid); -- cgit v1.2.3