Help Center

CHeader.GetItemDropDownRectmethod

Gets the coordinates of the drop-down button for a specfied item in a header control. The header control must be of type HDF_SPLITBUTTON.

WindowsmethodCHeader.incdocumented

Syntax

FUNCTION GetItemDropDownRect (BYVAL hHeader AS HWND, BYVAL iItem AS LONG, BYVAL prc AS RECT PTR) AS BOOLEAN
FUNCTION GetItemDropDownRect (BYVAL hHeader AS HWND, BYVAL iItem AS LONG, BYREF rc AS RECT) AS BOOLEAN
FUNCTION GetItemDropDownRect (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 to receive the bounding rectangle information. The message sender is responsible for allocating this structure. The coordinates returned in the RECT structure are expressed as screen coordinates.

Return value

Returns TRUE if successful, or FALSE otherwise.

Description

Gets the coordinates of the drop-down button for a specified item in a header control. The header control must be of type HDF_SPLITBUTTON.

Reference

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