ListView_SetView()

Examples


The ListView_SetView() function sets the view mode for the specified list view field.

Syntax

ListView_SetView(list_view_field, view_mode)

Parameters

list_view_field – The list view field for which the view mode is being set.

view_mode – An integer specifying the view mode. The value corresponds to one of the following constants:

[spacer]

Constant

Description

LV_SMICON_VIEW

Small icon view

LV_LGICON_VIEW

Large icon view

LV_LIST_VIEW

List view

LV_REPORT_VIEW

Report view


Return value

An integer containing the previous view mode for the list view field. The value corresponds to one of the constants listed for the view_mode parameter.


Documentation Feedback