summaryrefslogtreecommitdiff
path: root/plugins/TopToolBar
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-13 18:11:21 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-13 18:11:21 +0000
commit950917d869583a8e09135c5d7b5b81d98ed1a213 (patch)
treeceb1efc371723823da8e90dfa65c4f0955e1bbb0 /plugins/TopToolBar
parent50684e9cd73ec3e3ccaa14c7732efa2f4654dbc3 (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/TopToolBar')
-rw-r--r--plugins/TopToolBar/ttbopt.cpp7
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)