diff options
Diffstat (limited to 'plugins/TabSRMM/src')
-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; } |