From 0388e4a5e99d7f38718ac17c4d3e3565d1e2d559 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 29 Apr 2018 23:41:17 +0200 Subject: fixes #1307 (horror in webview contact settings) --- plugins/WebView/src/webview.cpp | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) (limited to 'plugins/WebView/src/webview.cpp') diff --git a/plugins/WebView/src/webview.cpp b/plugins/WebView/src/webview.cpp index 1206e4774f..3359fe2cdf 100644 --- a/plugins/WebView/src/webview.cpp +++ b/plugins/WebView/src/webview.cpp @@ -37,7 +37,6 @@ UINT_PTR timerId; UINT_PTR Countdown; LOGFONT g_lf; HFONT h_font; -HWND ContactHwnd; HMENU hMenu; int bpStatus; HGENMENU hMenuItem1; @@ -467,30 +466,14 @@ int ContactMenuItemUpdateData(WPARAM wParam, LPARAM lParam) /*****************************************************************************/ INT_PTR CntOptionsMenuCommand(WPARAM wParam, LPARAM) { - HWND hwndDlg = WindowList_Find(hWindowList, wParam); - if (hwndDlg) { - DestroyWindow(hwndDlg); - return 0; - } - - hwndDlg = CreateDialogParam(g_plugin.getInst(), MAKEINTRESOURCE(IDD_CONTACT_OPT), nullptr, DlgProcContactOpt, (LPARAM)wParam); - ShowWindow(hwndDlg, SW_SHOW); - SetActiveWindow(hwndDlg); + DialogBoxParam(g_plugin.getInst(), MAKEINTRESOURCE(IDD_CONTACT_OPT), nullptr, DlgProcContactOpt, wParam); return 0; } /*****************************************************************************/ INT_PTR CntAlertMenuCommand(WPARAM wParam, LPARAM) { - HWND hwndDlg = WindowList_Find(hWindowList, (MCONTACT)wParam); - if (hwndDlg) { - DestroyWindow(hwndDlg); - return 0; - } - - hwndDlg = CreateDialogParam(g_plugin.getInst(), MAKEINTRESOURCE(IDD_ALRT_OPT), nullptr, DlgProcAlertOpt, (LPARAM)wParam); - ShowWindow(hwndDlg, SW_SHOW); - SetActiveWindow(hwndDlg); + DialogBoxParam(g_plugin.getInst(), MAKEINTRESOURCE(IDD_ALRT_OPT), nullptr, DlgProcAlertOpt, wParam); return 0; } -- cgit v1.2.3