diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-13 17:18:50 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-13 17:18:50 +0000 |
commit | 90c154b4be566ec4a804217d0f1e50fb1e259b72 (patch) | |
tree | cb61dfa15c78fe79f1c37796b1b8167cf5fe47e4 | |
parent | e1a951460fef9eecef8944a7e5fce4e51bb9387a (diff) |
- fix for notification message code;
- another fix for Apply button
git-svn-id: http://svn.miranda-ng.org/main/trunk@397 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
-rw-r--r-- | plugins/TopToolBar/ttbopt.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/plugins/TopToolBar/ttbopt.cpp b/plugins/TopToolBar/ttbopt.cpp index bb38550d2a..89e1407f24 100644 --- a/plugins/TopToolBar/ttbopt.cpp +++ b/plugins/TopToolBar/ttbopt.cpp @@ -133,7 +133,12 @@ static INT_PTR CALLBACK ButOrderOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPAR case WM_COMMAND:
if (HIWORD(wParam) == EN_CHANGE && OptionshWnd) {
- SendMessage(GetParent(hwndDlg), PSM_CHANGED, 0, 0);
+ switch(LOWORD(wParam)) {
+ case IDC_ENAME: case IDC_EPATH:
+ break;
+ default:
+ SendMessage(GetParent(hwndDlg), PSM_CHANGED, 0, 0);
+ }
break;
}
@@ -268,7 +273,8 @@ static INT_PTR CALLBACK ButOrderOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPAR }
break;
- case TVN_SELCHANGED:
+ case TVN_SELCHANGEDA:
+ case TVN_SELCHANGEDW:
{
HTREEITEM hti = TreeView_GetSelection(GetDlgItem(hwndDlg, IDC_BUTTONORDERTREE));
if (hti == NULL)
@@ -512,7 +518,6 @@ int TTBOptInit(WPARAM wParam, LPARAM lParam) {
OPTIONSDIALOGPAGE odp = { 0 };
odp.cbSize = sizeof(odp);
- odp.position = 0;
odp.hInstance = hInst;
odp.pszGroup = LPGEN("TopToolBar");
@@ -524,10 +529,7 @@ int TTBOptInit(WPARAM wParam, LPARAM lParam) CallService(MS_OPT_ADDPAGE, wParam, (LPARAM)&odp);
}
- ZeroMemory(&odp, sizeof(odp));
- odp.cbSize = sizeof(odp);
odp.position = -1000000000;
- odp.hInstance = hInst;
odp.pszTemplate = MAKEINTRESOURCEA(IDD_OPT_BUTORDER);
odp.pszGroup = LPGEN("TopToolBar");
odp.pszTitle = LPGEN("Buttons");
|