Using Custom Icons

The QuickWin run-time library provides default icons for your application and its child windows. Windows displays these icons when the user minimizes the application's client window or its child windows. You can create your own icons and add them to your executable file, and Windows will display them instead of the default icons.

To add icons to your QuickWin program, follow these steps:

1.Create the icon files, using SDKPaint (provided with the Microsoft Windows Software Development Kit) or a similar tool provided by another Windows programming system.

2.Create a resource script with the contents

FRAMEICON ICON frame.ico

CHILDICON ICON child.ico

where frame.ico and child.ico are the names of the files containing the frame and child icons. The icon resources must have the resource names FRAMEICON and CHILDICON.

3.Using the Microsoft Windows Resource Compiler (provided with the Microsoft Windows Software Development Kit) or a similar tool, compile the icon resources and add them to your executable file.

For information on using SDKPaint and the Resource Compiler, see the Tools manual distributed with the Microsoft Windows Software Development Kit (version 3.0) and available as a trade book from Microsoft Press.