Important: The information in this document is obsolete and should not be used for new development.
Drawing Icons From ResourcesThe routines described in this section allow you to plot an icon directly from a resource without first creating an icon suite.
To draw an icon from an icon family (that is, those resources of type
'ics8'that share the same resource ID), use the
PlotIconIDfunction. This function gets the icon's data from its resource and also allows you to specify transforms and alignment. The
PlotIconIDfunction also determines, from the destination rectangle in which the icon is to be drawn and the current bit depth of the display device, which resource type to get from the icon family.
To draw an icon obtained with the aid of an icon getter function, use the
PlotIconMethodfunction. For information about icon getter functions, see "Icon Getter Functions" beginning on page 5-58.
To plot an icon of resource types
'cicn'from an icon handle previously obtained from the
GetCIconfunction, use the
PlotCIconHandlefunctions, respectively. These functions allow you to specify transforms and alignment.
You can also plot an icon of resource types
PlotCIconprocedures, respectively. However, neither of these procedures allow you to specify transforms and alignment.
To plot an icon of resource type
'SICN', use the
PlotSICNHandlefunction. This function allows you to specify transforms and alignment.