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/Dummy/src/dummy_options.cpp | 4 ++-- protocols/Dummy/src/dummy_proto.cpp | 2 -- protocols/Dummy/src/dummy_proto.h | 4 ++-- 3 files changed, 4 insertions(+), 6 deletions(-) (limited to 'protocols/Dummy/src') diff --git a/protocols/Dummy/src/dummy_options.cpp b/protocols/Dummy/src/dummy_options.cpp index 3ceecc0225..37125777a7 100644 --- a/protocols/Dummy/src/dummy_options.cpp +++ b/protocols/Dummy/src/dummy_options.cpp @@ -114,7 +114,7 @@ INT_PTR CALLBACK DummyAccountProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM return FALSE; } -INT_PTR CDummyProto::SvcCreateAccMgrUI(WPARAM, LPARAM lParam) +MWindow CDummyProto::OnCreateAccMgrUI(MWindow hwndParent) { - return (INT_PTR)CreateDialogParam(g_plugin.getInst(), MAKEINTRESOURCE(IDD_ACCMGRUI), (HWND)lParam, DummyAccountProc, (LPARAM)this); + return CreateDialogParam(g_plugin.getInst(), MAKEINTRESOURCE(IDD_ACCMGRUI), hwndParent, DummyAccountProc, (LPARAM)this); } diff --git a/protocols/Dummy/src/dummy_proto.cpp b/protocols/Dummy/src/dummy_proto.cpp index 7ec308eb3e..8a67a9763d 100644 --- a/protocols/Dummy/src/dummy_proto.cpp +++ b/protocols/Dummy/src/dummy_proto.cpp @@ -68,8 +68,6 @@ static int sttCompareProtocols(const CDummyProto *p1, const CDummyProto *p2) CDummyProto::CDummyProto(const char *szModuleName, const wchar_t *ptszUserName) : PROTO(szModuleName, ptszUserName) { - CreateProtoService(PS_CREATEACCMGRUI, &CDummyProto::SvcCreateAccMgrUI); - msgid = 0; int id = getTemplateId(); diff --git a/protocols/Dummy/src/dummy_proto.h b/protocols/Dummy/src/dummy_proto.h index ffe2d4b9fc..d7836f7f64 100644 --- a/protocols/Dummy/src/dummy_proto.h +++ b/protocols/Dummy/src/dummy_proto.h @@ -38,9 +38,9 @@ struct CDummyProto : public PROTO MCONTACT AddToList(int flags, PROTOSEARCHRESULT* psr) override; - //==== Services ====================================================================== + //==== Events ========================================================================== - INT_PTR __cdecl SvcCreateAccMgrUI(WPARAM, LPARAM); + MWindow OnCreateAccMgrUI(MWindow) override; void __cdecl SearchIdAckThread(void*); -- cgit v1.2.3