From 13c65091dba7803ddc8b604732d3cf3e8cb2fe5d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 11 Feb 2023 18:58:29 +0300 Subject: PS_CREATEACCMGRUI is obsoleted and converted into event --- protocols/MinecraftDynmap/src/proto.cpp | 6 ++---- protocols/MinecraftDynmap/src/proto.h | 4 +--- 2 files changed, 3 insertions(+), 7 deletions(-) (limited to 'protocols/MinecraftDynmap/src') diff --git a/protocols/MinecraftDynmap/src/proto.cpp b/protocols/MinecraftDynmap/src/proto.cpp index f5c780a07a..69ffe75278 100644 --- a/protocols/MinecraftDynmap/src/proto.cpp +++ b/protocols/MinecraftDynmap/src/proto.cpp @@ -36,8 +36,6 @@ MinecraftDynmapProto::MinecraftDynmapProto(const char* proto_name, const wchar_t CreateProtoService(PS_JOINCHAT, &MinecraftDynmapProto::OnJoinChat); CreateProtoService(PS_LEAVECHAT, &MinecraftDynmapProto::OnLeaveChat); - CreateProtoService(PS_CREATEACCMGRUI, &MinecraftDynmapProto::SvcCreateAccMgrUI); - HookProtoEvent(ME_GC_EVENT, &MinecraftDynmapProto::OnChatEvent); // Create standard network connection @@ -133,9 +131,9 @@ int MinecraftDynmapProto::SetStatus(int new_status) ////////////////////////////////////////////////////////////////////////////// // EVENTS -INT_PTR MinecraftDynmapProto::SvcCreateAccMgrUI(WPARAM, LPARAM lParam) +MWindow MinecraftDynmapProto::OnCreateAccMgrUI(MWindow hwndParent) { - return (INT_PTR)CreateDialogParam(g_plugin.getInst(),MAKEINTRESOURCE(IDD_MinecraftDynmapACCOUNT), (HWND)lParam, MinecraftDynmapAccountProc, (LPARAM)this); + return CreateDialogParam(g_plugin.getInst(),MAKEINTRESOURCE(IDD_MinecraftDynmapACCOUNT), hwndParent, MinecraftDynmapAccountProc, (LPARAM)this); } void MinecraftDynmapProto::OnShutdown() diff --git a/protocols/MinecraftDynmap/src/proto.h b/protocols/MinecraftDynmap/src/proto.h index 7cae90dae4..39a7b0e08f 100644 --- a/protocols/MinecraftDynmap/src/proto.h +++ b/protocols/MinecraftDynmap/src/proto.h @@ -47,11 +47,9 @@ public: int SetStatus(int iNewStatus) override; void OnContactDeleted(MCONTACT) override; + MWindow OnCreateAccMgrUI(MWindow) override; void OnShutdown() override; - // Services - INT_PTR __cdecl SvcCreateAccMgrUI(WPARAM, LPARAM); - // Chat handling int __cdecl OnChatEvent(WPARAM,LPARAM); INT_PTR __cdecl OnJoinChat(WPARAM,LPARAM); -- cgit v1.2.3