Header_GetItemCount macro (commctrl.h)

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

Syntax

void Header_GetItemCount(
   hwndHD
);

Parameters

hwndHD

Type: HWND

A handle to the header control.

Return value

None

Remarks

The Header_GetItemCount macro is defined as follows.

#define Header_GetItemCount(hwndHD)   \

       (int)SendMessage((hwndHD), HDM_GETITEMCOUNT, 0, 0L)

Requirements

   
Minimum supported client Windows Vista [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header commctrl.h