diff options
author | George Hazan <george.hazan@gmail.com> | 2014-12-18 23:45:30 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-12-18 23:45:30 +0000 |
commit | 5a6cdb96f6ac9a022670b7e86c8106c1cb5e5433 (patch) | |
tree | 7daf47f8e75b27b6c966a84735646540378d599b /plugins/TabSRMM | |
parent | c6b5a9cda42f6ad6eb8ebeee0fe43257b25f7af6 (diff) |
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
Diffstat (limited to 'plugins/TabSRMM')
-rw-r--r-- | plugins/TabSRMM/src/controls.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
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; } |