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/Twitter/src/proto.cpp | 6 ++---- protocols/Twitter/src/proto.h | 2 +- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'protocols/Twitter/src') diff --git a/protocols/Twitter/src/proto.cpp b/protocols/Twitter/src/proto.cpp index aadfb416a2..3cf8a955dd 100644 --- a/protocols/Twitter/src/proto.cpp +++ b/protocols/Twitter/src/proto.cpp @@ -27,8 +27,6 @@ CTwitterProto::CTwitterProto(const char *proto_name, const wchar_t *username) : PROTO(proto_name, username), m_arChatMarks(10, NumericKeySortT) { - CreateProtoService(PS_CREATEACCMGRUI, &CTwitterProto::SvcCreateAccMgrUI); - CreateProtoService(PS_JOINCHAT, &CTwitterProto::OnJoinChat); CreateProtoService(PS_LEAVECHAT, &CTwitterProto::OnLeaveChat); @@ -181,9 +179,9 @@ int CTwitterProto::SetStatus(int new_status) ///////////////////////////////////////////////////////////////////////////////////////// -INT_PTR CTwitterProto::SvcCreateAccMgrUI(WPARAM, LPARAM lParam) +MWindow CTwitterProto::OnCreateAccMgrUI(MWindow hwndParent) { - return (INT_PTR)CreateDialogParam(g_plugin.getInst(), MAKEINTRESOURCE(IDD_TWITTERACCOUNT), (HWND)lParam, first_run_dialog, (LPARAM)this); + return CreateDialogParam(g_plugin.getInst(), MAKEINTRESOURCE(IDD_TWITTERACCOUNT), hwndParent, first_run_dialog, (LPARAM)this); } INT_PTR CTwitterProto::ReplyToTweet(WPARAM wParam, LPARAM) diff --git a/protocols/Twitter/src/proto.h b/protocols/Twitter/src/proto.h index d545f409db..544c08d9a7 100644 --- a/protocols/Twitter/src/proto.h +++ b/protocols/Twitter/src/proto.h @@ -167,6 +167,7 @@ public: HANDLE GetAwayMsg(MCONTACT) override; void OnContactDeleted(MCONTACT) override; + MWindow OnCreateAccMgrUI(MWindow) override; void OnMarkRead(MCONTACT, MEVENT) override; void OnModulesLoaded() override; @@ -175,7 +176,6 @@ public: ////////////////////////////////////////////////////////////////////////////////////// // Services - INT_PTR __cdecl SvcCreateAccMgrUI(WPARAM,LPARAM); INT_PTR __cdecl ReplyToTweet(WPARAM,LPARAM); INT_PTR __cdecl VisitHomepage(WPARAM,LPARAM); INT_PTR __cdecl GetAvatar(WPARAM,LPARAM); -- cgit v1.2.3