SEC_TREECLASS::GetItemRect

BOOLSEC_TREECLASS::GetItemRect(HTREEITEMhti, LPRECTlpRect, UINTnCode)

Retrieves the bounding rectangle for an item and determines whether it is visible or not.

Defined in: trcore.inl

Return Value

Nonzero if the item is visible, with the bounding rectangle contained in lpRect. Otherwise, 0 with lpRect uninitialized.

Parameters

hti

The handle of a tree view control item.

lpRect

Pointer to a RECT structure that receives the bounding rectangle. The coordinates are relative to the upper-left corner of the tree view control.

nCode

Portion of the tree view item for which to retrieve the bounding rectangle. It can be one of these values: LVIR_BOUNDSReturns the bounding rectangle of the entire item, including the icon and label. LVIR_ICONReturns the bounding rectangle of the icon or small icon. LVIR_LABELReturns the bounding rectangle of the item text.

Comments

Call this function to retrieve the bounding rectangle and determine whether it is visible or not.