From 0a1a69241815b1e27051a51fa87f0b2f6fdbf2b4 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sat, 14 Feb 2015 18:23:37 +0000 Subject: first draft of add node dialog git-svn-id: http://svn.miranda-ng.org/main/trunk@12105 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Tox/src/tox_events.cpp | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'protocols/Tox/src/tox_events.cpp') diff --git a/protocols/Tox/src/tox_events.cpp b/protocols/Tox/src/tox_events.cpp index 0f577dcdb7..d0b30674d2 100644 --- a/protocols/Tox/src/tox_events.cpp +++ b/protocols/Tox/src/tox_events.cpp @@ -29,4 +29,25 @@ int CToxProto::OnOptionsInit(WPARAM wParam, LPARAM) mir_free(title); return 0; -} \ No newline at end of file +} + +int OptInit(WPARAM wParam, LPARAM) +{ + OPTIONSDIALOGPAGE odp = { sizeof(odp) }; + odp.hInstance = g_hInstance; + odp.flags = ODPF_BOLDGROUPS; + odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPTIONS_NODES); + odp.pszGroup = LPGEN("Network"); + odp.pszTitle = LPGEN("Tox nodes"); + odp.pfnDlgProc = ToxNodesOptionsProc; + Options_AddPage(wParam, &odp); + return 0; +} + +int PreShutdown(WPARAM, LPARAM) +{ + if (hAddNodeDlg) + SendMessage(hAddNodeDlg, WM_CLOSE, 0, 0); + + return 0; +} -- cgit v1.2.3