Navigation:  thinBasic Modules > UI (User Interface) > Dedicated Control Functions > ListView Control > ListView: General functions >

ListView_SetView

Previous pageReturn to chapter overviewNext page

 

Description

 

Sets the view of a list-view control.

 

Syntax

 

n = ListView_SetView(hWnd, ctrlID, lView)

 

Returns

 

Number

 

Parameters

 

Name

Type

Optional

Meaning

hWnd

Number

No

Handle of the dialog containing the list-view control

ctrlID

Number

No

Control identifier assigned to the control during CONTROL ADD ...

lView

Number

No

A DWORD that specifies the view. Use one of the following equates:

%LV_VIEW_DETAILS

%LV_VIEW_REPORT

%LV_VIEW_ICON

%LV_VIEW_LIST

%LV_VIEW_SMALLICON

%LV_VIEW_TILE

 

Remarks

 

Restrictions

 

Minimum operating system: Windows XP

 

See also

 

Examples