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
int Header_GetItemCount(
HWND hwndHD
);
Parameters
hwndHD
Type: HWND
A handle to the header control.
Return value
Type: int
Returns the number of items if successful, or -1 otherwise.
Remarks
The Header_GetItemCount macro is defined as follows.
#define Header_GetItemCount(hwndHD) \
(int)SendMessage((hwndHD), HDM_GETITEMCOUNT, 0, 0L)
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2003 [desktop apps only] |
Target Platform | Windows |
Header | commctrl.h |