Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Removes a column from a list-view control. You can use this macro or send the LVM_DELETECOLUMN message explicitly.
BOOL ListView_DeleteColumn(
HWND hwnd,
int iCol
);
hwnd
Type: HWND
A handle to the list-view control.
iCol
Type: int
An index of the column to delete.
Type: BOOL
Returns TRUE if successful, or FALSE otherwise.
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.
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 |