summaryrefslogtreecommitdiff
path: root/protocols/Twitter
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2023-02-11 18:58:29 +0300
committerGeorge Hazan <ghazan@miranda.im>2023-02-11 18:58:29 +0300
commit13c65091dba7803ddc8b604732d3cf3e8cb2fe5d (patch)
tree77d39ba8d777f24c022d9141fa709165a2e802da /protocols/Twitter
parent70ff82fd507835546c5f9a54e593f8868ab50891 (diff)
PS_CREATEACCMGRUI is obsoleted and converted into event
Diffstat (limited to 'protocols/Twitter')
-rw-r--r--protocols/Twitter/src/proto.cpp6
-rw-r--r--protocols/Twitter/src/proto.h2
2 files changed, 3 insertions, 5 deletions
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<CTwitterProto>(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);