Share via


TreeView_HitTest (Windows CE 5.0)

Send Feedback

This macro 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.

HTREEITEMTreeView_HitTest(hwnd,lpht );

Parameters

  • hwnd
    Handle to the tree view control.
  • lpht
    Long pointer to 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.

Return Values

The handle to the tree view item that occupies the specified point indicates success. NULL indicates that no item occupies the point.

Requirements

OS Versions: Windows CE 1.0 and later.
Header: Commctrl.h.

See Also

TVM_HITTEST | TVHITTESTINFO

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.