TVM_GETITEMRECT
The
TVM_GETITEMRECT message retrieves the bounding rectangle for a tree-view item
and indicates whether the item is visible. You can send this message explicitly
or by using the TreeView_GetItemRect
TVM_GETITEMRECT
wParam = (WPARAM) (BOOL) fItemRect;
lParam = (LPARAM) (RECT FAR*) prc;
Parameters
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.
prc
Pointer to a RECT
Return Values
If the item
is visible and retrieves the bounding rectangle, the return value is TRUE.
Otherwise, the message returns FALSE and does not retrieve the bounding rectangle.
See Also