Header_GetItemCount

This macro retrieves a count of the items in a header control. You can use this macro or send the HDM_GETITEMCOUNT message explicitly.

At a Glance

Header file: Commctrl.h
Windows CE versions: 1.0 and later
Related message: HDM_GETITEMCOUNT

Syntax

int Header_GetItemCount( hwndHD );

Parameters

hwndHD

Handle to the header control.

Return Values

The number of items indicates success. –1 indicates failure.

Remarks

The Header_GetItemCount macro is defined as follows:

#define Header_GetItemCount(hwndHD)      \
      (int)SendMessage((hwndHD), HDM_GETITEMCOUNT, 0, 0L)