summaryrefslogtreecommitdiff
path: root/protocols/IRCG
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/IRCG
parent70ff82fd507835546c5f9a54e593f8868ab50891 (diff)
PS_CREATEACCMGRUI is obsoleted and converted into event
Diffstat (limited to 'protocols/IRCG')
-rw-r--r--protocols/IRCG/src/ircproto.cpp1
-rw-r--r--protocols/IRCG/src/ircproto.h2
-rw-r--r--protocols/IRCG/src/options.cpp6
3 files changed, 4 insertions, 5 deletions
diff --git a/protocols/IRCG/src/ircproto.cpp b/protocols/IRCG/src/ircproto.cpp
index 205dab708d..3b807fea9d 100644
--- a/protocols/IRCG/src/ircproto.cpp
+++ b/protocols/IRCG/src/ircproto.cpp
@@ -41,7 +41,6 @@ CIrcProto::CIrcProto(const char* szModuleName, const wchar_t* tszUserName) :
{
CreateProtoService(PS_GETMYAWAYMSG, &CIrcProto::GetMyAwayMsg);
- CreateProtoService(PS_CREATEACCMGRUI, &CIrcProto::SvcCreateAccMgrUI);
CreateProtoService(PS_JOINCHAT, &CIrcProto::OnJoinChat);
CreateProtoService(PS_LEAVECHAT, &CIrcProto::OnLeaveChat);
diff --git a/protocols/IRCG/src/ircproto.h b/protocols/IRCG/src/ircproto.h
index ee40589a8a..6614bf4df7 100644
--- a/protocols/IRCG/src/ircproto.h
+++ b/protocols/IRCG/src/ircproto.h
@@ -71,11 +71,11 @@ struct CIrcProto : public PROTO<CIrcProto>
void OnBuildProtoMenu(void) override;
void OnContactDeleted(MCONTACT) override;
+ MWindow OnCreateAccMgrUI(MWindow) override;
void OnModulesLoaded() override;
void OnShutdown() override;
// Services
- INT_PTR __cdecl SvcCreateAccMgrUI(WPARAM, LPARAM);
INT_PTR __cdecl GetMyAwayMsg(WPARAM, LPARAM);
INT_PTR __cdecl OnChangeNickMenuCommand(WPARAM, LPARAM);
diff --git a/protocols/IRCG/src/options.cpp b/protocols/IRCG/src/options.cpp
index c9be724a6a..4f3439540d 100644
--- a/protocols/IRCG/src/options.cpp
+++ b/protocols/IRCG/src/options.cpp
@@ -1352,11 +1352,11 @@ public:
}
};
-INT_PTR CIrcProto::SvcCreateAccMgrUI(WPARAM, LPARAM lParam)
+MWindow CIrcProto::OnCreateAccMgrUI(MWindow hwndParent)
{
- CDlgAccMgrUI *dlg = new CDlgAccMgrUI(this, (HWND)lParam);
+ CDlgAccMgrUI *dlg = new CDlgAccMgrUI(this, hwndParent);
dlg->Show();
- return (INT_PTR)dlg->GetHwnd();
+ return dlg->GetHwnd();
}
/////////////////////////////////////////////////////////////////////////////////////////