Q3MacDrawContext_GetGrafPort
You can use theQ3MacDrawContext_GetGrafPortfunction to get the QuickDraw graphics port associated with a Macintosh draw context.
TQ3Status Q3MacDrawContext_GetGrafPort ( TQ3DrawContextObject drawContext, CGrafPtr *grafPort);
drawContext- A Macintosh draw context object.
grafPort- On exit, the QuickDraw graphics port currently associated with the specified draw context.
DESCRIPTION
TheQ3MacDrawContext_GetGrafPortfunction returns, in thegrafPortparameter, the QuickDraw graphics port currently associated with the draw context specified by thedrawContextparameter. If no graphics port is associated with the draw context or the two-dimensional graphics library is notkQ3Mac2DLibraryQuickDraw,Q3MacDrawContext_GetGrafPortreturnsNULLin thegrafPortparameter.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help