Q3MacDrawContext_SetGrafPort
You can use the Q3MacDrawContext_SetGrafPort function to set the QuickDraw graphics port associated with a Macintosh draw context.
TQ3Status Q3MacDrawContext_SetGrafPort (
TQ3DrawContextObject drawContext,
const CGrafPtr grafPort);
drawContext
- A Macintosh draw context object.
grafPort
- The QuickDraw graphics port to be associated with the specified draw context.
DESCRIPTION
The Q3MacDrawContext_SetGrafPort function sets the QuickDraw graphics port associated with the draw context specified by the drawContext parameter to the graphics port specified by the grafPort parameter. The two-dimensional graphics library associated with the specified draw context must be kQ3Mac2DLibraryQuickDraw.