Q3ViewerGetPort
You can use theQ3ViewerGetPortfunction to get the color graphics port associated with a viewer object.
CGrafPtr Q3ViewerGetPort (TQ3ViewerObject theViewer);
theViewer- A viewer object.
DESCRIPTION
TheQ3ViewerGetPortfunction returns, as its function result, a pointer to the color graphics port currently associated with the viewer object specified by thetheViewerparameter.