Dialog Templates in Memory This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
This article was previously published under Q155257 SUMMARY Dialog boxes can be created by using templates in resources
or from templates built in memory at run time. The sample contains a class
CDlgTempl, which can be used to create these templates in memory. This class
provides an easy interface for building and manipulating templates in memory.
The following files are available for download from the Microsoft Download Center: Dlgtpl32.exe (http://download.microsoft.com/download/vc40pro/sample6/1/nt4/en-us/dlgtpl32.exe) For additional information about how to download Microsoft Support files, click the following article number to view the article in the Microsoft Knowledge Base: 119591 (http://support.microsoft.com/kb/119591/EN-US/) 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 to
prevent any unauthorized changes to the file.
MORE INFORMATION The DLGTEMPLATE and DLGITEMTEMPLATE structures are used for
building templates in memory. These structures are not fixed-length structures.
They also must aligned properly. This sample provides a class to build these structures correctly. It also provides the ability to read a template from the resource and then manipulate them. Some of the important functions are: SetDlgTemplate Sets some of the properties of the dialog box.The sample illustrates using the class by loading the about box from resource and changing the Caption for the dialog box. REFERENCES See the Win32 SDK. APPLIES TO
| Article Translations
| |||||||||||||||||||||||||||||


Back to the top
