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/Tox/src | |
parent | 70ff82fd507835546c5f9a54e593f8868ab50891 (diff) |
PS_CREATEACCMGRUI is obsoleted and converted into event
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();
|