SAMPLE: DirLV Sample Populates a ListView Control Similar to Explorer

ID: Q234310


The information in this article applies to:


SUMMARY

DirLV.exe is a sample that demonstrates how to implement an Explorer-like ListView control. The control handles some user-defined messages that make it display the contents of a specified directory. The ListView control displays the associated icon, the long file name, the size of the file, the file type, its creation date, and the file attributes.

The sample illustrates how to:

The sample does not use ITEMIDLISTs to identify shell elements (that is, files) nor does it use any of the associated shell interfaces. As a consequence, it does not recognize link files as such, it does not handle virtual directories, and it fails to identify an icon for console applications that don't have an icon associated with them.


MORE INFORMATION

The following file is available for download from the Microsoft Software Library. Click the file name below to download the file:

DirLV.exe
Release Date: Jul-23-1999

For more information about how to download files from the Microsoft Software Library, please see the following article in the Microsoft Knowledge Base:
Q119591 How to Obtain Microsoft Support Files from Online Services


REFERENCES

See the VListVw sample in the Online documentation.

© Microsoft Corporation 1999, All Rights Reserved.
Contributions by Cosmin Radu, Microsoft Corporation

Additional query words: List View CListCtrl SHGetFileInfo Directory LB_DIR Virtual Control


Keywords          : kbfile kbsample kbCmnCtrls kbMFC kbVC500 kbVC600 kbDSupport kbGrpMFCATL 
Version           : winnt:5.0,6.0
Platform          : winnt 
Issue type        : 

Last Reviewed: August 5, 1999