LVM_SETVIEW message

Sets the view of a list-view control.

Parameters

wParam

**DWORD** that specifies the view.

lParam

Must be zero.

Return value

Returns 1 if successful, or -1 otherwise. For example, -1 is returned if the view is invalid.

Remarks

Following are the values for views.

  • LV_VIEW_DETAILS
  • LV_VIEW_ICON
  • LV_VIEW_LIST
  • LV_VIEW_SMALLICON
  • LV_VIEW_TILE

Note

To use this message, you must provide a manifest specifying Comctl32.dll version 6.0. For more information on manifests, see Enabling Visual Styles.

Requirements

Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2003 [desktop apps only]
Header
Commctrl.h