no changes, just removed duplicate TreeView_HitTest() calls

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44140 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin
2007-01-07 20:09:15 +00:00
parent a1d5a2937a
commit 8854a202f4

View File

@@ -56,16 +56,6 @@
// private functions
// ----------------------------------------------------------------------------
// wrapper for TreeView_HitTest
static HTREEITEM GetItemFromPoint(HWND hwndTV, int x, int y)
{
TV_HITTESTINFO tvht;
tvht.pt.x = x;
tvht.pt.y = y;
return (HTREEITEM)TreeView_HitTest(hwndTV, &tvht);
}
// wrappers for TreeView_GetItem/TreeView_SetItem
static bool IsItemSelected(HWND hwndTV, HTREEITEM hItem)
{
@@ -2059,13 +2049,12 @@ WXLRESULT wxTreeCtrl::MSWWindowProc(WXUINT nMsg, WXWPARAM wParam, WXLPARAM lPara
// same meaning for all of them
int x = GET_X_LPARAM(lParam),
y = GET_Y_LPARAM(lParam);
HTREEITEM htItem = GetItemFromPoint(GetHwnd(), x, y);
TV_HITTESTINFO tvht;
tvht.pt.x = x;
tvht.pt.y = y;
(void) TreeView_HitTest(GetHwnd(), &tvht);
HTREEITEM htItem = TreeView_HitTest(GetHwnd(), &tvht);
switch ( nMsg )
{