summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/steam_events.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Steam/src/steam_events.cpp')
-rw-r--r--protocols/Steam/src/steam_events.cpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/protocols/Steam/src/steam_events.cpp b/protocols/Steam/src/steam_events.cpp
index c03fc3bb91..bbf707886e 100644
--- a/protocols/Steam/src/steam_events.cpp
+++ b/protocols/Steam/src/steam_events.cpp
@@ -31,12 +31,7 @@ int CSteamProto::OnPreShutdown(WPARAM, LPARAM)
INT_PTR CSteamProto::OnAccountManagerInit(WPARAM wParam, LPARAM lParam)
{
- return (int)CreateDialogParam(
- g_hInstance,
- MAKEINTRESOURCE(IDD_ACCMGR),
- (HWND)lParam,
- CSteamProto::MainOptionsProc,
- (LPARAM)this);
+ return (INT_PTR)(CSteamOptionsMain::CreateAccountManagerPage(this, (HWND)lParam))->GetHwnd();
}
int CSteamProto::OnOptionsInit(void *obj, WPARAM wParam, LPARAM lParam)
@@ -48,18 +43,23 @@ int CSteamProto::OnOptionsInit(void *obj, WPARAM wParam, LPARAM lParam)
OPTIONSDIALOGPAGE odp = { sizeof(odp) };
odp.hInstance = g_hInstance;
odp.pszTitle = title;
- odp.dwInitParam = LPARAM(obj);
odp.flags = ODPF_BOLDGROUPS;
odp.pszGroup = LPGEN("Network");
odp.pszTab = LPGEN("Account");
odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPT_MAIN);
- odp.pfnDlgProc = MainOptionsProc;
+ odp.pfnDlgProc = CSteamOptionsMain::DynamicDlgProc;
+ odp.dwInitParam = (LPARAM)&instance->SteamMainOptionsParam;
+ instance->SteamMainOptionsParam.create = CSteamOptionsMain::CreateOptionsPage;
+ instance->SteamMainOptionsParam.param = instance;
Options_AddPage(wParam, &odp);
odp.pszTab = LPGEN("Blocked contacts");
odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPT_BLOCK_LIST);
- odp.pfnDlgProc = BlockListOptionsProc;
+ odp.pfnDlgProc = CSteamOptionsMain::DynamicDlgProc;
+ odp.dwInitParam = (LPARAM)&instance->SteamBlockListOptionsParam;
+ instance->SteamBlockListOptionsParam.create = CSteamOptionsBlockList::CreateOptionsPage;
+ instance->SteamBlockListOptionsParam.param = instance;
Options_AddPage(wParam, &odp);
mir_free(title);