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/Dummy | |
parent | 70ff82fd507835546c5f9a54e593f8868ab50891 (diff) |
PS_CREATEACCMGRUI is obsoleted and converted into event
Diffstat (limited to 'protocols/Dummy')
-rw-r--r-- | protocols/Dummy/src/dummy_options.cpp | 4 | ||||
-rw-r--r-- | protocols/Dummy/src/dummy_proto.cpp | 2 | ||||
-rw-r--r-- | protocols/Dummy/src/dummy_proto.h | 4 |
3 files changed, 4 insertions, 6 deletions
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<CDummyProto>(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<CDummyProto> MCONTACT AddToList(int flags, PROTOSEARCHRESULT* psr) override;
- //==== Services ======================================================================
+ //==== Events ==========================================================================
- INT_PTR __cdecl SvcCreateAccMgrUI(WPARAM, LPARAM);
+ MWindow OnCreateAccMgrUI(MWindow) override;
void __cdecl SearchIdAckThread(void*);
|