Header_DeleteItem macro

Deletes an item from a header control. You can use this macro or send the HDM_DELETEITEM message explicitly.

Syntax


BOOL Header_DeleteItem(
   HWND hwndHD,
   int  index
);

Parameters

hwndHD

Type: HWND

A handle to the header control.

index

Type: int

An index of the item to delete.

Return value

Returns TRUE if successful, or FALSE otherwise.

Remarks

The Header_DeleteItem macro is defined as follows.

#define Header_DeleteItem(hwndHD, index)     \

      (BOOL)SendMessage((hwndHD), HDM_DELETEITEM, (WPARAM)(int)(index), 0L)

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Commctrl.h

 

 

Show: