summaryrefslogtreecommitdiff
path: root/plugins/WebView/src/webview.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-04-29 23:41:17 +0200
committerGeorge Hazan <ghazan@miranda.im>2018-04-29 23:41:17 +0200
commit0388e4a5e99d7f38718ac17c4d3e3565d1e2d559 (patch)
tree815f27c0ed0ff776f2002c92e10b59cc5d4d7f89 /plugins/WebView/src/webview.cpp
parent66913f4be6078f89ef87fbbc5dd3497c6dde51c2 (diff)
fixes #1307 (horror in webview contact settings)
Diffstat (limited to 'plugins/WebView/src/webview.cpp')
-rw-r--r--plugins/WebView/src/webview.cpp21
1 files changed, 2 insertions, 19 deletions
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;
}