diff options
Diffstat (limited to 'src/mir_app/src/chat_svc.cpp')
-rw-r--r-- | src/mir_app/src/chat_svc.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mir_app/src/chat_svc.cpp b/src/mir_app/src/chat_svc.cpp index 3dc5539ce0..9434faed20 100644 --- a/src/mir_app/src/chat_svc.cpp +++ b/src/mir_app/src/chat_svc.cpp @@ -25,7 +25,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. INT_PTR SvcGetChatManager(WPARAM, LPARAM);
#include "chat.h"
+#include "resource.h"
+HMENU g_hMenu = nullptr;
HGENMENU hJoinMenuItem, hLeaveMenuItem;
mir_cs csChat;
@@ -783,6 +785,9 @@ int LoadChatModule(void) HookEvent(ME_FONT_RELOAD, FontsChanged);
HookEvent(ME_SKIN2_ICONSCHANGED, IconsChanged);
+ g_hMenu = LoadMenu(g_hInst, MAKEINTRESOURCE(IDR_SRMM));
+ TranslateMenu(g_hMenu);
+
bInited = true;
return 0;
}
@@ -803,4 +808,6 @@ void UnloadChatModule(void) DestroyHookableEvent(chatApi.hSendEvent);
DestroyHookableEvent(chatApi.hBuildMenuEvent);
DestroyHookableEvent(hHookEvent);
+
+ DestroyMenu(g_hMenu);
}
|