Important: The information in this document is obsolete and should not be used for new development.
Converting an Icon Mask to a Region
TheIconSuiteToRgn
,IconIDToRgn
, andIconMethodToRgn
functions create a region from an icon's mask.IconSuiteToRgn
andIconIDToRgn
operate on an icon identified by a handle to a suite and an icon ID, respectively. TheIconMethodToRgn
function performs this operation on the icon mask that it obtains with the aid of
your icon getter function. Once you have a region that describes the icon mask for a given icon, you can use it to perform accurate hit-testing and outline dragging of the icon in your application.
Subtopics
- IconSuiteToRgn
- IconIDToRgn
- IconMethodToRgn