Q3ViewerGetDimension
You can use theQ3ViewerGetDimensionfunction to get the current dimensions of the model space in a viewer's view hints object.
OSErr Q3ViewerGetDimension ( TQ3ViewerObject theViewer, unsigned long *width, unsigned long *height);
theViewer- A viewer object.
width- On exit, the width of the pane of the specified viewer.
height- On exit, the height of the pane of the specified viewer.
DESCRIPTION
TheQ3ViewerGetDimensionfunction returns, in thewidthandheightparameters, the current width and height of the model space in the view hints object associated with the viewer object specified by thetheViewerparameter. If there is no such view hints object,Q3ViewerGetDimensionreturns the width and height of the viewer pane.