1.6.10 Drawing Icons

The DrawIcon function draws an icon at a given location in the client area. An icon is a bitmap that a window uses as a symbol to represent an item, such as an application or a warning.

You can use the Image Editor to create an icon and then use Microsoft Windows Resource Compiler (RC) to add the icon to your application's resources. Your application can then call the LoadIcon function to load the icon into memory.

Applications can also call the CreateIcon function to create an icon and can modify a previously loaded or created icon at any time. An icon resource is in global memory, and the icon's handle is the handle of that memory. An application can free memory used to store an icon created by CreateIcon by calling the DeleteIcon function.