SAMPLE: DlgIcons.exe Dynamically Changes Icons in Modal Dialog

ID: Q74509

The information in this article applies to:

SUMMARY

DlgIcons.exe is a sample in demonstrates how to dynamically change an icon in a modal dialog box.

MORE INFORMATION

The following file is available for download from the Microsoft Software Library:

 ~ DlgIcons.exe (size: 21276 bytes) 

For more information about downloading files from the Microsoft Software Library, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q119591
   TITLE     : How to Obtain Microsoft Support Files from Online Services

The modal dialog box displays an icon by creating a static child window with the SS_ICON style. The lpWindowName parameter to the CreateWindow() function specifies the icon to be displayed. To change the icon, the dialog destroys the child and creates a new child in the same location.

Additional query words: Keywords : kbfile kbsample kb16bitonly kbDlg kbIcon kbGrpUser kbWinOS310 kbWinOS300

Last Reviewed: December 13, 1998