WinXListView_SetView


WinXListView_SetView (hLV, view)

Sets the view mode for a list view control

Parameter Description
hLV The handle to the listview control
view The view to change the control to, see remarks for possible values

Returns

$$TRUE on success or $$FALSE on fail

Remarks

The view parameter can be any one of:

$$LVS_ICON
Large icons with labels underneath
$$LVS_SMALLICON
Small icons with text to the right of each icon
$$LVS_LIST
Similar to $$LVS_SMALLICON except that the icons are arranged in columns and cannot be dragged to arbitrary locations.
$$LVS_REPORT
Similar to $$LVS_SMALLICON except that a number of "sub items" are displayed in columns to the right of each item. There is a header control which allows the user to resize the columns

Examples

'set a list view to icons view
WinXListView_SetView (hLV, $$LVS_ICON)

Related Links

List View Controls
WinXAddListView
WinXListView_AddColumn