Windows Dev Center

Collapse the table of content
Expand the table of content
Expand Minimize

ListView_DeleteColumn macro

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

Syntax


BOOL ListView_DeleteColumn(
   HWND hwnd,
   int  iCol
);

Parameters

hwnd

Type: HWND

A handle to the list-view control.

iCol

Type: int

An index of the column to delete.

Return value

Returns TRUE if successful, or FALSE otherwise.

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

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Commctrl.h

 

 

Community Additions

ADD
Show:
© 2015 Microsoft