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/DbEditorPP/src/main_window.cpp | 7 +------ plugins/DbEditorPP/src/options.cpp | 4 ++-- 2 files changed, 3 insertions(+), 8 deletions(-) (limited to 'plugins/DbEditorPP/src') diff --git a/plugins/DbEditorPP/src/main_window.cpp b/plugins/DbEditorPP/src/main_window.cpp index da31dd2eb1..6868493943 100644 --- a/plugins/DbEditorPP/src/main_window.cpp +++ b/plugins/DbEditorPP/src/main_window.cpp @@ -506,12 +506,7 @@ INT_PTR CALLBACK MainDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) refreshTree(1); break; case MENU_OPEN_OPTIONS: - OPENOPTIONSDIALOG odp = { 0 }; - odp.cbSize = sizeof(odp); - odp.pszGroup = "Database"; - odp.pszPage = modFullname; - odp.pszTab = 0; - Options_Open(&odp); + Options_Open(L"Database", _A2W(modFullname)); break; } return TRUE; // case WM_COMMAND diff --git a/plugins/DbEditorPP/src/options.cpp b/plugins/DbEditorPP/src/options.cpp index 8879d0f4a5..c6c59a83ad 100644 --- a/plugins/DbEditorPP/src/options.cpp +++ b/plugins/DbEditorPP/src/options.cpp @@ -64,8 +64,8 @@ INT OptInit(WPARAM wParam, LPARAM) OPTIONSDIALOGPAGE odp = { 0 }; odp.hInstance = hInst; odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPTIONS); - odp.pszGroup = LPGEN("Database"); - odp.pszTitle = modFullname; + odp.szGroup.a = LPGEN("Database"); + odp.szTitle.a = modFullname; odp.pfnDlgProc = DlgProcOpts; odp.flags = ODPF_BOLDGROUPS; Options_AddPage(wParam, &odp); -- cgit v1.2.3