We recommend using Visual Studio 2017
This documentation is archived and is not being maintained.


Sets the view of the list view control.

DWORD SetView(
   int iView 


The view to be selected.

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

This member function emulates the functionality of the LVM_SETVIEW message, as described in the Windows SDK.

Header: afxcmn.h