diff options
author | George Hazan <ghazan@miranda.im> | 2023-02-11 18:58:29 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2023-02-11 18:58:29 +0300 |
commit | 13c65091dba7803ddc8b604732d3cf3e8cb2fe5d (patch) | |
tree | 77d39ba8d777f24c022d9141fa709165a2e802da /protocols/MinecraftDynmap/src | |
parent | 70ff82fd507835546c5f9a54e593f8868ab50891 (diff) |
PS_CREATEACCMGRUI is obsoleted and converted into event
Diffstat (limited to 'protocols/MinecraftDynmap/src')
-rw-r--r-- | protocols/MinecraftDynmap/src/proto.cpp | 6 | ||||
-rw-r--r-- | protocols/MinecraftDynmap/src/proto.h | 4 |
2 files changed, 3 insertions, 7 deletions
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);
|