From 13c65091dba7803ddc8b604732d3cf3e8cb2fe5d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 11 Feb 2023 18:58:29 +0300 Subject: PS_CREATEACCMGRUI is obsoleted and converted into event --- protocols/Steam/src/steam_options.cpp | 6 +++--- protocols/Steam/src/steam_proto.cpp | 2 -- protocols/Steam/src/steam_proto.h | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) (limited to 'protocols/Steam/src') diff --git a/protocols/Steam/src/steam_options.cpp b/protocols/Steam/src/steam_options.cpp index c59d90e9bb..bbfa7311cd 100644 --- a/protocols/Steam/src/steam_options.cpp +++ b/protocols/Steam/src/steam_options.cpp @@ -60,11 +60,11 @@ public: } }; -INT_PTR CSteamProto::OnAccountManagerInit(WPARAM, LPARAM lParam) +MWindow CSteamProto::OnCreateAccMgrUI(MWindow hwndParent) { - auto *page = new CSteamOptionsMain(this, IDD_ACCMGR, (HWND)lParam); + auto *page = new CSteamOptionsMain(this, IDD_ACCMGR, hwndParent); page->Show(); - return (INT_PTR)page->GetHwnd(); + return page->GetHwnd(); } ///////////////////////////////////////////////////////////////////////////////// diff --git a/protocols/Steam/src/steam_proto.cpp b/protocols/Steam/src/steam_proto.cpp index 8a2959f84a..5f42e3ebe2 100644 --- a/protocols/Steam/src/steam_proto.cpp +++ b/protocols/Steam/src/steam_proto.cpp @@ -4,8 +4,6 @@ CSteamProto::CSteamProto(const char *protoName, const wchar_t *userName) : PROTO(protoName, userName), m_requestQueue(1), hAuthProcess(1), hMessageProcess(1) { - CreateProtoService(PS_CREATEACCMGRUI, &CSteamProto::OnAccountManagerInit); - m_hRequestsQueueEvent = CreateEvent(NULL, FALSE, FALSE, NULL); // default group diff --git a/protocols/Steam/src/steam_proto.h b/protocols/Steam/src/steam_proto.h index 4c72b97c57..b6605e50e3 100644 --- a/protocols/Steam/src/steam_proto.h +++ b/protocols/Steam/src/steam_proto.h @@ -106,6 +106,7 @@ public: int UserIsTyping(MCONTACT hContact, int type) override; void OnContactDeleted(MCONTACT) override; + MWindow OnCreateAccMgrUI(MWindow) override; void OnModulesLoaded() override; // menus @@ -236,7 +237,6 @@ protected: // events int __cdecl OnIdleChanged(WPARAM, LPARAM); int __cdecl OnOptionsInit(WPARAM wParam, LPARAM lParam); - INT_PTR __cdecl OnAccountManagerInit(WPARAM wParam, LPARAM lParam); // utils static uint16_t SteamToMirandaStatus(PersonaState state); -- cgit v1.2.3