IconIDToRgn
RgnHandle theRgn ; receives region created from icon mask Rect *iconRect ; rectangle indicating icon to choose short alignment ; alignment for icon
Handle iconID ; resource id of icon family IconIDToRgn selects an icon from the icon family with resource id iconID, based on iconRect, and creates a region from the icon mask of that icon. The
icon mask is aligned according to the alignment parameter. The region created
is returned in theRgn. This allows you to do accurate hit testing and outline
dragging of the icon in your application. theRgn must be allocated before
calling IconIDToRgn. It is NOT necessary to explicitly create an order to use this routine.
Notes: This routine is not currently documented in MPW header files (hence, it is
not in any THINK C or THINK Pascal header file either). The information
given above comes from Macintosh Technical Note #306. This tech. note
also gives the inline glue for the call as follows:
short alignment, short iconID)
= {0x303C, 0x0613, 0xABC9};