From 124f58006ce473de9dc391c7ced1f12875df080f Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Mon, 13 Apr 2015 15:12:46 +0000 Subject: dialog fix for SkypeWeb & Tox git-svn-id: http://svn.miranda-ng.org/main/trunk@12788 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/SkypeWeb/src/skype_options.cpp | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'protocols/SkypeWeb/src/skype_options.cpp') diff --git a/protocols/SkypeWeb/src/skype_options.cpp b/protocols/SkypeWeb/src/skype_options.cpp index 82f12ae358..d7e0396113 100644 --- a/protocols/SkypeWeb/src/skype_options.cpp +++ b/protocols/SkypeWeb/src/skype_options.cpp @@ -17,8 +17,8 @@ along with this program. If not, see . #include "common.h" -CSkypeOptionsMain::CSkypeOptionsMain(CSkypeProto *proto, int idDialog, HWND hwndParent) - : CSkypeDlgBase(proto, idDialog, hwndParent, false), +CSkypeOptionsMain::CSkypeOptionsMain(CSkypeProto *proto, int idDialog) + : CSkypeDlgBase(proto, idDialog, false), m_skypename(this, IDC_SKYPENAME), m_password(this, IDC_PASSWORD), m_group(this, IDC_GROUP), @@ -59,15 +59,11 @@ int CSkypeProto::OnOptionsInit(WPARAM wParam, LPARAM) OPTIONSDIALOGPAGE odp = { sizeof(odp) }; odp.hInstance = g_hInstance; odp.pszTitle = title; - odp.flags = ODPF_BOLDGROUPS | ODPF_DONTTRANSLATE; + odp.flags = ODPF_BOLDGROUPS | ODPF_TCHAR; odp.pszGroup = LPGEN("Network"); odp.pszTab = LPGEN("Account"); - odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPTIONS_MAIN); - odp.pfnDlgProc = CSkypeOptionsMain::DynamicDlgProc; - odp.dwInitParam = (LPARAM)&SkypeMainOptionsParam; - SkypeMainOptionsParam.create = CSkypeOptionsMain::CreateOptionsPage; - SkypeMainOptionsParam.param = this; + odp.pDialog = CSkypeOptionsMain::CreateOptionsPage(this); Options_AddPage(wParam, &odp); mir_free(title); -- cgit v1.2.3