Anteckning
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
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
Type: BOOL
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
| 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 |