summaryrefslogtreecommitdiff
path: root/protocols/MRA
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-04-22 14:34:57 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-04-22 14:34:57 +0300
commit9300399ed59f4d82f5e62f5ef43b752da4dd0735 (patch)
tree3b3454be313297cb33d5e550043217b467915581 /protocols/MRA
parent1a71e02f8edb73943f3ce7de693c7f3c3e9ebc48 (diff)
EV_PROTO_ONMENU removed
Diffstat (limited to 'protocols/MRA')
-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;