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.
|DLL||comctl32.dll version 4.70|
|Operating System||Windows 95, Microsoft Windows NT 3.51|
Downloading the Sample
Building the Sample
To build the sample using the command prompt:
- Open the Command Prompt window and navigate to the project directory.
msbuild [project file].
To build the sample using Visual Studio:
- Open Windows Explorer and navigate to the project directory.
- Double-click the icon for the .vcproj file to open the project in Visual Studio.
- From the Build menu, select Build Solution to build the solution.