diff options
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)); |