CHeaderCtrl::GetItemRect

Retrieves the bounding rectangle for a given item in a header control.

BOOL GetItemRect( 
   int nIndex, 
   LPRECT lpRect  
) const;

Parameters

  • nIndex
    The zero-based index of the header control item.

  • lpRect
    A pointer to the address of a RECT structure that receives the bounding rectangle information.

Return Value

Nonzero if successful; otherwise 0.

Remarks

This method implements the behavior of the Win32 message HDM_GETITEMRECT, as described in the Windows SDK.

Requirements

Header: afxcmn.h

See Also

Reference

CHeaderCtrl Class

Hierarchy Chart