TV_HITTESTINFO

This structure contains information used to determine the location of a point relative to a tree view control. This structure is identical to the TVHITTESTINFO structure, but was renamed to follow standard naming conventions.

typedef struct _TVHITTESTINFO { 
POINT pt; 
UINT flags; 
HTREEITEM hItem; } 
TV_HITTESTINFO, FAR *LPTV_HITTESTINFO;

Members

  • pt
    Client coordinates of the point to test.

  • flags
    Receives information about the results of a hit test. It can be one or more of the following values:

    Value Description
    TVHT_ABOVE Above the client area.
    TVHT_BELOW Below the client area.
    TVHT_NOWHERE In the client area, but below the last item.
    TVHT_ONITEM On the bitmap or label associated with an item.
    TVHT_ONITEMBUTTON On the button associated with an item.
    TVHT_ONITEMICON On the bitmap associated with an item.
    TVHT_ONITEMINDENT In the indentation associated with an item.
    TVHT_ONITEMLABEL On the label (string) associated with an item.
    TVHT_ONITEMRIGHT In the area to the right of an item.
    TVHT_ONITEMSTATEICON On the state icon for a tree view item that is in a user-defined state.
    TVHT_TOLEFT To the left of the client area.
    TVHT_TORIGHT To the right of the client area.
  • hItem
    Handle to the item that occupies the point.

Requirements

Runs on Versions Defined in Include Link to
Windows CE OS 1.0 and later Commctrl.h    

Note   This API is part of the complete Windows CE OS package as provided by Microsoft. The functionality of a particular platform is determined by the original equipment manufacturer (OEM) and some devices may not support this API.

See Also

TVM_HITTEST, TVHITTESTINFO

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.