SetPlatformCanvas
TheSetPlatformCanvasmethod assigns the drawing structure for the specified graphics system to this canvas.
void SetPlatformCanvas (in ODGraphicsSystem g, in ODPlatformCanvas c);
g- A 16-bit value specifying the graphics system whose drawing structure you are setting. Valid graphics systems are platform dependent.
c- A 32-bit value identifying the graphics-system-specific drawing structure to assign to this canvas, or
kODNULLto remove the drawing structure for a graphics system. Valid values forcare graphics-system-dependent.DISCUSSION
On the Mac OS platform, the graphics system may be either QuickDraw (kODQuickDraw) or QuickDraw GX (kODQuickDrawGX). For QuickDraw, the platform canvas should be a QuickDraw graphics port (typeGrafPtr); for QuickDraw GX, it should be a QuickDraw GX view port object (typegxViewPort).You can assign any graphics-system-specific drawing structure that a part might use. On some platforms, a canvas can have drawing structures for two or more graphics systems simultaneously.
EXCEPTIONS
kODErrInvalidGraphicsSystem- This implementation of OpenDoc does not support the specified graphics system or that graphics system is not installed or available.
SEE ALSO
TheODGraphicsSystemtype (page 883).
TheODCanvas::GetPlatformCanvasmethod (page 70).
TheODCanvas::HasPlatformCanvasmethod (page 74).
"Printing the Document" on page 174 in OpenDoc Programmer's Guide.
Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help