CustDTv sample illustrates custom draw in a Tree-View control (248496)



The information in this article applies to:

  • Microsoft Win32 Application Programming Interface (API), when used with:
    • the operating system: Microsoft Windows XP
    • the operating system: Microsoft Windows 2000
    • the operating system: Microsoft Windows NT 4.0
    • the operating system: Microsoft Windows Millennium Edition
    • the operating system: Microsoft Windows 98
    • Microsoft Windows 95

This article was previously published under Q248496

SUMMARY

Version 4.70 of Comctl32.dll introduced the concept of custom draw, which allows an application greater flexibility in customizing a control's appearance without having to implement full owner-draw. Windows Common Controls such as List-View, Tree-View, Tab, and ToolTip support custom draw.

CustDTv.exe is a sample that demonstrates using custom draw in a Tree-View control to specify the text color for each item, specify a font for each item, and display text adjacent to the item text.

MORE INFORMATION

The following file is available for download from the Microsoft Download Center:
DownloadDownload the CustDTv.exe package now. For more information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base:

119591 How to obtain Microsoft support files from online services

Microsoft scanned this file for viruses. Microsoft used the most current virus-detection software that was available on the date that the file was posted. The file is stored on security-enhanced servers that help prevent any unauthorized changes to the file.

Modification Type:MajorLast Reviewed:5/19/2005
Keywords:kbfile kbhowto kbSample kbTreeView KB248496 kbAudDeveloper