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 or concept, such as an application or a warning.

An icon can be created by using the Image Editor, added to an application's resources by using the Resource Compiler, and loaded into memory by using the LoadIcon function. 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 its handle is the handle to that memory. An application can free memory used to store an icon created by CreateIcon by calling DeleteIcon.