summaryrefslogtreecommitdiff
path: root/protocols/Steam/src/steam_events.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-04-03 20:53:10 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-04-03 20:53:10 +0000
commit77633ec5799b374a1899d05ae69a2e5f978f2a7c (patch)
tree495918b4f9fe4afabd3327bd31ded2b51c99cc1d /protocols/Steam/src/steam_events.cpp
parent62d9ae35f2621f77a8f5c2bd34bef66553ac6036 (diff)
Steam: moved to core ui
git-svn-id: http://svn.miranda-ng.org/main/trunk@12594 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
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);