Share via


TreeView_GetItemRect

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

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.

Syntax

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 Value

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.

Requirements

Header commctrl.h
Windows Embedded CE Windows CE 1.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

TVM_GETITEMRECT
RECT