From d614dd0a540be68878c806c034034a6209363c72 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 6 Nov 2023 21:03:17 +0300 Subject: =?UTF-8?q?fixes=20#3841=20(KeyboardNotify:=20=D0=BD=D0=B5=20?= =?UTF-8?q?=D1=80=D0=B0=D0=B1=D0=BE=D1=82=D0=B0=D0=B5=D1=82=20=D0=BA=D1=80?= =?UTF-8?q?=D0=B5=D1=81=D1=82=D0=B8=D0=BA=20=D0=B2=20=D0=BE=D0=BA=D0=BD?= =?UTF-8?q?=D0=B5)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugins/KeyboardNotify/src/options.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'plugins/KeyboardNotify/src') diff --git a/plugins/KeyboardNotify/src/options.cpp b/plugins/KeyboardNotify/src/options.cpp index a607fe349a..25a1a28837 100644 --- a/plugins/KeyboardNotify/src/options.cpp +++ b/plugins/KeyboardNotify/src/options.cpp @@ -381,6 +381,11 @@ static INT_PTR CALLBACK DlgProcXstatusList(HWND hwndDlg, UINT msg, WPARAM wParam } return TRUE; + case WM_SYSCOMMAND: + if (wParam == SC_CLOSE) + EndDialog(hwndDlg, IDC_CANCELXST); + break; + case WM_COMMAND: switch (LOWORD(wParam)) { case IDC_OKXST: @@ -402,7 +407,8 @@ static INT_PTR CALLBACK DlgProcXstatusList(HWND hwndDlg, UINT msg, WPARAM wParam XstatusListAux[i].enabled[j] = (TreeView_GetItemState(hwndTree, hItem, TVIS_STATEIMAGEMASK) & INDEXTOSTATEIMAGEMASK(2)); } } - } // fallthrough + } + __fallthrough; case IDC_CANCELXST: EndDialog(hwndDlg, LOWORD(wParam)); -- cgit v1.2.3