From b267153a704955a17214ea1c630d603b790aa5d2 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Sat, 18 Aug 2012 11:52:52 +0000 Subject: Minor fixes for the apply button behaviour git-svn-id: http://svn.miranda-ng.org/main/trunk@1497 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/KeyboardNotify/src/options.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) (limited to 'plugins/KeyboardNotify') diff --git a/plugins/KeyboardNotify/src/options.cpp b/plugins/KeyboardNotify/src/options.cpp index 6da29bd54d..60c9f89ab3 100644 --- a/plugins/KeyboardNotify/src/options.cpp +++ b/plugins/KeyboardNotify/src/options.cpp @@ -449,7 +449,6 @@ INT_PTR CALLBACK DlgProcBasicOptions(HWND hwndDlg, UINT msg, WPARAM wParam, LPAR case IDC_IFOLDER: case IDC_UNTILBLK: case IDC_UNTILATTENDED: - case IDC_MIRORWIN: case IDC_UNTILOPEN: case IDC_UNTILCOND: case IDC_FSCREEN: @@ -505,6 +504,10 @@ INT_PTR CALLBACK DlgProcBasicOptions(HWND hwndDlg, UINT msg, WPARAM wParam, LPAR if(HIWORD(wParam) == EN_CHANGE && !initDlg) SendMessage(GetParent(GetParent(hwndDlg)), PSM_CHANGED, 0, 0); return TRUE; + case IDC_MIRORWIN: + if(HIWORD(wParam) == CBN_SELCHANGE) + SendMessage(GetParent(GetParent(hwndDlg)), PSM_CHANGED, 0, 0); + return TRUE; } break; @@ -672,10 +675,8 @@ INT_PTR CALLBACK DlgProcEffectOptions(HWND hwndDlg, UINT msg, WPARAM wParam, LPA case IDC_SAMETIME: case IDC_INTURN: case IDC_INSEQUENCE: - case IDC_SEQORDER: case IDC_CUSTOM: case IDC_TRILLIAN: - case IDC_SCUSTOM: case IDC_SPEED: case IDC_KEYPRESSES: EnableWindow(GetDlgItem(hwndDlg, IDC_SEQORDER), IsDlgButtonChecked(hwndDlg, IDC_INSEQUENCE) == BST_CHECKED); @@ -694,6 +695,11 @@ INT_PTR CALLBACK DlgProcEffectOptions(HWND hwndDlg, UINT msg, WPARAM wParam, LPA case IDC_PREVIEW: previewFlashing(IsDlgButtonChecked(hwndDlg, IDC_PREVIEW) == BST_CHECKED); return TRUE; + case IDC_SEQORDER: + case IDC_SCUSTOM: + if(HIWORD(wParam) == CBN_SELCHANGE) + SendMessage(GetParent(GetParent(hwndDlg)), PSM_CHANGED, 0, 0); + return TRUE; } break; -- cgit v1.2.3