TreeView_HitTestTreeView_HitTest*
*Contents  *Index  *Topic Contents
*Previous Topic: TreeView_GetVisibleCount
*Next Topic: TreeView_InsertItem

TreeView_HitTest


HTREEITEM TreeView_HitTest(
    HWND hwndTV,
    LPTVHITTESTINFO lpht
);		

Determines the location of the specified point relative to the client area of a tree view control. You can use this macro or send the TVM_HITTEST message explicitly.

hwndTV
Handle to the tree view control.
lpht
Address of a TVHITTESTINFO structure. When the message is sent, the pt member specifies the coordinates of the point to test. When the message returns, the hItem member is the handle to the item at the specified point or NULL if no item occupies the point. Also, when the message returns, the flags member is a hit test value that indicates the location of the specified point. For a list of hit test values, see the description of the TVHITTESTINFO structure.

Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.