From cf9de21af3073e29cb7b149fbd8427241de70729 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Fri, 28 Oct 2016 16:18:50 +0300 Subject: - old useless helpers removed from the Options module; - mir_app functions introduced instead of them; - OPENOPTIONSDIALOG structure removed from m_options.h --- plugins/FavContacts/src/options.cpp | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) (limited to 'plugins/FavContacts') diff --git a/plugins/FavContacts/src/options.cpp b/plugins/FavContacts/src/options.cpp index 39d0578537..d0ebe942b3 100644 --- a/plugins/FavContacts/src/options.cpp +++ b/plugins/FavContacts/src/options.cpp @@ -173,13 +173,7 @@ static INT_PTR CALLBACK OptionsDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARA break; case IDC_BTN_FONTS: - { - OPENOPTIONSDIALOG ood = { sizeof(ood) }; - ood.pszGroup = "Customize"; - ood.pszPage = "Fonts and colors"; - ood.pszTab = NULL; - Options_Open(&ood); - } + Options_Open(L"Customize", L"Fonts and colors"); break; case IDC_TXT_RADIUS: @@ -263,8 +257,8 @@ int ProcessOptInitialise(WPARAM wParam, LPARAM) odp.position = 100000000; odp.hInstance = g_hInst; odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPTIONS); - odp.pszGroup = LPGEN("Contacts"); - odp.pszTitle = LPGEN("Favorites"); + odp.szGroup.a = LPGEN("Contacts"); + odp.szTitle.a = LPGEN("Favorites"); odp.groupPosition = 910000000; odp.flags = ODPF_BOLDGROUPS; odp.pfnDlgProc = OptionsDlgProc; -- cgit v1.2.3