diff options
author | George Hazan <george.hazan@gmail.com> | 2023-11-06 21:03:17 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2023-11-06 21:03:17 +0300 |
commit | d614dd0a540be68878c806c034034a6209363c72 (patch) | |
tree | d455d6ba247e8241a4df7865b07f84e39c684b87 /plugins/KeyboardNotify/src | |
parent | c05b365aebe01c1b5630f97801faa1293f655421 (diff) |
fixes #3841 (KeyboardNotify: не работает крестик в окне)
Diffstat (limited to 'plugins/KeyboardNotify/src')
-rw-r--r-- | plugins/KeyboardNotify/src/options.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
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)); |