From 950917d869583a8e09135c5d7b5b81d98ed1a213 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 13 Jun 2012 18:11:21 +0000 Subject: 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 --- plugins/TopToolBar/ttbopt.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'plugins') 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) -- cgit v1.2.3