summaryrefslogtreecommitdiff
path: root/protocols/MRA/src
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/MRA/src')
-rw-r--r--protocols/MRA/src/MraIcons.cpp7
-rw-r--r--protocols/MRA/src/MraProto.cpp10
-rw-r--r--protocols/MRA/src/MraProto.h2
3 files changed, 8 insertions, 11 deletions
diff --git a/protocols/MRA/src/MraIcons.cpp b/protocols/MRA/src/MraIcons.cpp
index 2be25ea965..4a82300695 100644
--- a/protocols/MRA/src/MraIcons.cpp
+++ b/protocols/MRA/src/MraIcons.cpp
@@ -49,6 +49,13 @@ IconItem gdiExtraStatusIconsItems[ADV_ICON_MAX] =
//////////////////////////////////////////////////////////////////////////////////////
+void CMraProto::OnBuildProtoMenu()
+{
+ CListCreateMenu(2000060000, 500085000, TRUE, gdiMenuItems, MAIN_MENU_ITEMS_COUNT, hMainMenuItems);
+}
+
+//////////////////////////////////////////////////////////////////////////////////////
+
HICON IconLibGetIcon(HANDLE hIcon)
{
return IconLibGetIconEx(hIcon, LR_SHARED);
diff --git a/protocols/MRA/src/MraProto.cpp b/protocols/MRA/src/MraProto.cpp
index 73698f42e0..8dada4acde 100644
--- a/protocols/MRA/src/MraProto.cpp
+++ b/protocols/MRA/src/MraProto.cpp
@@ -551,13 +551,3 @@ int CMraProto::UserIsTyping(MCONTACT hContact, int type)
return 1;
}
-
-int CMraProto::OnEvent(PROTOEVENTTYPE eventType, WPARAM, LPARAM)
-{
- switch (eventType) {
- case EV_PROTO_ONMENU:
- CListCreateMenu(2000060000, 500085000, TRUE, gdiMenuItems, MAIN_MENU_ITEMS_COUNT, hMainMenuItems);
- break;
- }
- return 1;
-}
diff --git a/protocols/MRA/src/MraProto.h b/protocols/MRA/src/MraProto.h
index fa16b5fbcf..80cbec1f33 100644
--- a/protocols/MRA/src/MraProto.h
+++ b/protocols/MRA/src/MraProto.h
@@ -71,7 +71,7 @@ struct CMraProto : public PROTO<CMraProto>
int UserIsTyping(MCONTACT hContact, int type) override;
- int OnEvent(PROTOEVENTTYPE eventType, WPARAM wParam, LPARAM lParam) override;
+ void OnBuildProtoMenu(void) override;
void OnModulesLoaded() override;
void OnShutdown() override;