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/PackUpdater/Src/Options.cpp | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'plugins/PackUpdater/Src/Options.cpp') diff --git a/plugins/PackUpdater/Src/Options.cpp b/plugins/PackUpdater/Src/Options.cpp index 2738ae2034..ff84eec42d 100644 --- a/plugins/PackUpdater/Src/Options.cpp +++ b/plugins/PackUpdater/Src/Options.cpp @@ -101,13 +101,8 @@ INT_PTR CALLBACK UpdateNotifyOptsProc(HWND hwndDlg, UINT msg, WPARAM wParam, LPA break; case IDC_LINK_HOTKEY: - { - OPENOPTIONSDIALOG ood = { sizeof(ood) }; - ood.pszGroup = "Customize"; - ood.pszPage = "Hotkeys"; - Options_Open(&ood); - } - return true; + Options_Open(L"Customize", L"Hotkeys"); + return true; case IDC_MSG_BOXES2: case IDC_ERRORS2: @@ -390,15 +385,15 @@ int OptInit(WPARAM wParam, LPARAM) odp.hInstance = hInst; odp.flags = ODPF_BOLDGROUPS | ODPF_UNICODE; odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPT_UPDATENOTIFY); - odp.pwszGroup = LPGENW("Services"); - odp.pwszTitle = LPGENW("Pack Updater"); + odp.szGroup.w = LPGENW("Services"); + odp.szTitle.w = LPGENW("Pack Updater"); odp.pfnDlgProc = UpdateNotifyOptsProc; Options_AddPage(wParam, &odp); if (ServiceExists(MS_POPUP_ADDPOPUPT)) { odp.pszTemplate = MAKEINTRESOURCEA(IDD_POPUP); - odp.pwszGroup = LPGENW("Popups"); - odp.pwszTitle = LPGENW("Pack Updater"); + odp.szGroup.w = LPGENW("Popups"); + odp.szTitle.w = LPGENW("Pack Updater"); odp.pfnDlgProc = DlgPopupOpts; Options_AddPage(wParam, &odp); } -- cgit v1.2.3