Share via


TreeView_GetItemRect

This macro retrieves the bounding rectangle for a tree-view item and indicates whether the item is visible. You can use this macro or send the TVM_GETITEMRECT message explicitly.

BOOL TreeView_GetItemRect( 
hwnd, 
hitem, 
prc, 
fItemRect );

Parameters

  • hwnd
    Handle to the tree view control.
  • hitem
    Handle to the tree view item.
  • prc
    Pointer to a RECT structure that receives the bounding rectangle. The coordinates are relative to the upper-left corner of the tree view control.
  • fItemRect
    Value that specifies the portion of the item for which to retrieve the bounding rectangle. If set to TRUE, the bounding rectangle includes only the text of the item. If set to FALSE, it includes the entire line that the item occupies in the tree view control.

Return Values

TRUE indicates that the item is visible and the bounding rectangle is successfully retrieved. FALSE indicates that the TVM_GETITEMRECT message does not retrieve the bounding rectangle.

Remarks

Related message: TVM_GETITEMRECT

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.

 Last updated on Tuesday, July 13, 2004

© 1992-2000 Microsoft Corporation. All rights reserved.