Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Retrieves the largest possible bounding rectangle that constitutes the "hit zone" for a specified part of an item. Use this macro or send the TVM_GETITEMPARTRECT message explicitly.
BOOL TreeView_GetItemPartRect(
HWND hwnd,
HTREEITEM hitem,
RECT *prc,
TVITEMPART *partid
);
hwnd
Type: HWND
Handle to the tree-view control.
hitem
Type: HTREEITEM
Handle to the tree-view item.
prc
Type: RECT*
Pointer to a RECT structure that receives the bounding rectangle. The caller is responsible for allocating this structure. The coordinates received are relative to the upper-left corner of the tree-view control.
partid
Type: TVITEMPART*
ID of the item part. This value must be TVGIPR_BUTTON (0x0001).
Type: BOOL
Returns TRUE if successful, or FALSE otherwise.
This message returns the largest possible bounding rectangle such that for every (x,y) coordinate within the rectangle, a click by the user at that coordinate would constitute a hit on that part of the item.
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | commctrl.h |