diff options
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*);
|