TreeView_GetItemRect (Compact 2013)
3/28/2014
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 |