Contents Index Topic Contents | ||
Previous Topic: TreeView_GetItemHeight Next Topic: TreeView_GetLastVisible |
TreeView_GetItemRect
BOOL TreeView_GetItemRect( HWND hwndTV, HTREEITEM hitem, LPRECT prc, BOOL fItemRect );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.
- If the item is visible and the bounding rectangle is successfully retrieved, the return value is TRUE. Otherwise, the TVM_GETITEMRECT message returns FALSE and does not retrieve the bounding rectangle.
- hwndTV
- Handle to the tree view control.
- hitem
- Handle to the tree view item.
- prc
- Address of a RECT structure that receives the bounding rectangle. The coordinates are relative to the upper-left corner of the tree view control.
- fItemRect
- Value specifying the portion of the item for which to retrieve the bounding rectangle. If this parameter is TRUE, the bounding rectangle includes only the text of the item. Otherwise, it includes the entire line that the item occupies in the tree view control.
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.