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/Steam/src | |
parent | 70ff82fd507835546c5f9a54e593f8868ab50891 (diff) |
PS_CREATEACCMGRUI is obsoleted and converted into event
Diffstat (limited to 'protocols/Steam/src')
-rw-r--r-- | protocols/Steam/src/steam_options.cpp | 6 | ||||
-rw-r--r-- | protocols/Steam/src/steam_proto.cpp | 2 | ||||
-rw-r--r-- | protocols/Steam/src/steam_proto.h | 2 |
3 files changed, 4 insertions, 6 deletions
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<CSteamProto>(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);
|