diff options
author | George Hazan <george.hazan@gmail.com> | 2012-06-13 18:11:21 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-06-13 18:11:21 +0000 |
commit | 950917d869583a8e09135c5d7b5b81d98ed1a213 (patch) | |
tree | ceb1efc371723823da8e90dfa65c4f0955e1bbb0 /plugins | |
parent | 50684e9cd73ec3e3ccaa14c7732efa2f4654dbc3 (diff) |
removed the unneeded TreeView_GetItem by request of Awkward
git-svn-id: http://svn.miranda-ng.org/main/trunk@400 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/TopToolBar/ttbopt.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/plugins/TopToolBar/ttbopt.cpp b/plugins/TopToolBar/ttbopt.cpp index 89e1407f24..afe0f5dc82 100644 --- a/plugins/TopToolBar/ttbopt.cpp +++ b/plugins/TopToolBar/ttbopt.cpp @@ -280,12 +280,7 @@ static INT_PTR CALLBACK ButOrderOpts(HWND hwndDlg, UINT msg, WPARAM wParam, LPAR if (hti == NULL)
break;
- TVITEM tvi;
- tvi.mask = TVIF_HANDLE | TVIF_IMAGE | TVIF_SELECTEDIMAGE | TVIF_PARAM;
- tvi.hItem = hti;
- TreeView_GetItem(GetDlgItem(hwndDlg, IDC_BUTTONORDERTREE), &tvi);
-
- TopButtonInt *btn = (TopButtonInt*)tvi.lParam;
+ TopButtonInt *btn = (TopButtonInt*)((LPNMTREEVIEW)lParam)->itemNew.lParam;
lockbut();
EnableWindow(GetDlgItem(hwndDlg, IDC_REMOVESEP), FALSE);
if (btn->dwFlags & TTBBF_ISSEPARATOR)
|