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.
At a Glance
Header file: | Commctrl.h |
Windows CE versions: | 1.0 and later |
Related message: | TVM_GETITEMRECT |
Syntax
BOOL TreeView_GetItemRect( hwnd, hitem, prc, fItemRect);
Parameters
hwndTV
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.