Partager via


LVM_SETCOLUMNWIDTH (Windows Embedded CE 6.0)

1/6/2010

This message changes the width of a column in report or list view. You can send this message explicitly or by using the ListView_SetColumnWidth macro.

Syntax

LVM_SETCOLUMNWIDTH wParam = (WPARAM)(int) iCol; 
    lParam = MAKELPARAM((int) cx, 0);

Parameters

  • iCol
    Zero-based index of a valid column. For list-view mode, this parameter must be set to zero.
  • cx
    New width of the column, in list-view coordinates, or one of the following values.

    Value Description

    LVSCW_AUTOSIZE

    Automatically sizes the column

    LVSCW_AUTOSIZE_USEHEADER

    Automatically sizes the column to fit the header text

Return Value

Nonzero indicates success. Zero indicates otherwise.

Remarks

Related macro: ListView_SetColumnWidth

Requirements

Header commctrl.h
Windows Embedded CE Windows CE 1.0 and later

See Also

Reference

List-View Controls Messages
ListView_SetColumnWidth