From 5a6cdb96f6ac9a022670b7e86c8106c1cb5e5433 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 18 Dec 2014 23:45:30 +0000 Subject: fixes #798 (TabSRMM: language does not change until restart) git-svn-id: http://svn.miranda-ng.org/main/trunk@11520 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TabSRMM/src/controls.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'plugins/TabSRMM/src/controls.cpp') diff --git a/plugins/TabSRMM/src/controls.cpp b/plugins/TabSRMM/src/controls.cpp index 10c8237cb1..2a181e32a1 100644 --- a/plugins/TabSRMM/src/controls.cpp +++ b/plugins/TabSRMM/src/controls.cpp @@ -39,6 +39,11 @@ int CMenuBar::m_MimIconRefCount = 0; static int resetLP(WPARAM, LPARAM, LPARAM obj) { + if (PluginConfig.g_hMenuContext) + DestroyMenu(PluginConfig.g_hMenuContext); + PluginConfig.g_hMenuContext = LoadMenu(g_hInst, MAKEINTRESOURCE(IDR_TABCONTEXT)); + TranslateMenu(PluginConfig.g_hMenuContext); + ((CMenuBar*)obj)->resetLP(); return 0; } -- cgit v1.2.3