ListView_DeleteColumn macro (commctrl.h)

Removes a column from a list-view control. You can use this macro or send the LVM_DELETECOLUMN message explicitly.

Syntax

void ListView_DeleteColumn(
   hwnd,
   iCol
);

Parameters

hwnd

Type: HWND

A handle to the list-view control.

iCol

Type: int

An index of the column to delete.

Return value

None

Remarks

Deleting column zero of a list-view control is supported only in ComCtl32.dll version 6 and later. Version 5 also supports deleting column zero, but only after you use CCM_SETVERSION to set the version to 5 or later. In versions prior to version 5, if you must delete column zero, insert a zero length dummy column zero and delete column one and above.

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