diff options
Diffstat (limited to 'protocols/Tox/src')
-rw-r--r-- | protocols/Tox/src/tox_accounts.cpp | 4 | ||||
-rw-r--r-- | protocols/Tox/src/tox_proto.cpp | 2 | ||||
-rw-r--r-- | protocols/Tox/src/tox_proto.h | 3 |
3 files changed, 3 insertions, 6 deletions
diff --git a/protocols/Tox/src/tox_accounts.cpp b/protocols/Tox/src/tox_accounts.cpp index b4c7f62c4d..352707ecc1 100644 --- a/protocols/Tox/src/tox_accounts.cpp +++ b/protocols/Tox/src/tox_accounts.cpp @@ -15,7 +15,7 @@ int CToxProto::OnAccountRenamed(WPARAM wParam, LPARAM lParam) return 0;
}
-INT_PTR CToxProto::OnAccountManagerInit(WPARAM, LPARAM lParam)
+MWindow CToxProto::OnCreateAccMgrUI(MWindow hwndParent)
{
- return (INT_PTR)(CToxOptionsMain::CreateAccountManagerPage(this, (HWND)lParam))->GetHwnd();
+ return (CToxOptionsMain::CreateAccountManagerPage(this, hwndParent))->GetHwnd();
}
diff --git a/protocols/Tox/src/tox_proto.cpp b/protocols/Tox/src/tox_proto.cpp index 7a231ef89d..4d29655855 100644 --- a/protocols/Tox/src/tox_proto.cpp +++ b/protocols/Tox/src/tox_proto.cpp @@ -15,8 +15,6 @@ CToxProto::CToxProto(const char* protoName, const wchar_t* userName) if (m_defaultGroup == nullptr)
m_defaultGroup = mir_wstrdup(L"Tox");
- CreateProtoService(PS_CREATEACCMGRUI, &CToxProto::OnAccountManagerInit);
-
setAllContactStatuses(ID_STATUS_OFFLINE);
// avatars
diff --git a/protocols/Tox/src/tox_proto.h b/protocols/Tox/src/tox_proto.h index 22efa4f6e1..2a6e485932 100644 --- a/protocols/Tox/src/tox_proto.h +++ b/protocols/Tox/src/tox_proto.h @@ -48,6 +48,7 @@ public: void OnBuildProtoMenu(void) override;
void OnContactDeleted(MCONTACT) override;
+ MWindow OnCreateAccMgrUI(MWindow) override;
void OnErase() override;
void OnModulesLoaded() override;
@@ -117,8 +118,6 @@ private: // accounts
int __cdecl OnAccountRenamed(WPARAM, LPARAM);
- INT_PTR __cdecl OnAccountManagerInit(WPARAM, LPARAM);
-
// netlib
void InitNetlib();
|