VListVW Sample

This topic describes the VListVW Sample code sample. It contains the following sections:


The VListVW Sample shows how to implement a simple virtual list-view control in an application. A virtual list-view control is a standard list-view control with the LVS_OWNERDATA style. This example creates a list-view control that "virtually" holds 100,000 items. The items are never actually added. Instead, the virtual list-view control is "told" how many items it contains with the LVM_SETITEMCOUNT message. When an item needs to be drawn, the list-view control queries the parent window for display information with the LVN_GETDISPINFO notification.

Minimum Requirements

DLLcomctl32.dll version 4.70
Operating SystemWindows 95, Microsoft Windows NT 3.51


Downloading the Sample

The VListVW Sample is installed as part of the Windows Software Development Kit (SDK) and is available in the following location.

Windows SDK%Program Files%\Microsoft SDKs\Windows\[version number]\Samples\winui\controls\common\vlistvw


Building the Sample

To build the sample using the command prompt:

  1. Open the Command Prompt window and navigate to the project directory.
  2. Enter msbuild [project file].

To build the sample using Visual Studio:

  1. Open Windows Explorer and navigate to the project directory.
  2. Double-click the icon for the .vcproj file to open the project in Visual Studio.
  3. From the Build menu, select Build Solution to build the solution.

Related topics

About List-View Controls



Community Additions

© 2014 Microsoft