Help Center

CHeader.GetItemRectmethod

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

WindowsmethodCHeader.incdocumented

Syntax

FUNCTION GetItemRect (BYVAL hHeader AS HWND, BYVAL iItem AS LONG, BYVAL prc AS RECT PTR) AS BOOLEAN
FUNCTION GetItemRect (BYVAL hHeader AS HWND, BYVAL iItem AS LONG, BYREF rc AS RECT) AS BOOLEAN
FUNCTION GetItemRect (BYVAL hHeader AS HWND, BYVAL iItem AS LONG) AS RECT

Parameters

NameDescription
hHeaderThe handle of the header control.
iItemThe zero-based index of the header control item for which to retrieve the bounding rectangle.
prcA pointer to a RECT structure that receives the bounding rectangle information.

Return value

Returns TRUE if successful, or FALSE otherwise.

Description

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

Reference

  • Include file CHeader.inc
  • Defined in AfxNova/CHeader.inc:241
  • Documented in Windows/WIndows Controls/CHeader Class.md
  • Topic: CHeader Class