Important: The information in this document is obsolete and should not be used for new development.
SetStdProcs
You can use theSetStdProcsprocedure to get aQDProcsrecord with fields that point to basic QuickDraw's standard low-level routines. You can replace these low-level routines with your own, and then point to your modifiedQDProcsrecord in thegrafProcsfield of aGrafPortrecord to change basic QuickDraw's standard low-level behavior.
PROCEDURE SetStdProcs (VAR procs:\xDDQDProcs);
procs- Upon completion, a
QDProcsrecord with fields that point to basic QuickDraw's standard low-level routines.DESCRIPTION
In theprocsparameter, theSetStdProcsprocedure returns aQDProcsrecord with fields that point to the standard low-level routines. You can change one or more fields of this record to point to your own routines and then set the basic graphics port to use this modifiedQDProcsrecord.The routines you install in this
QDProcsrecord must have the same calling sequences as the standard routines, which are described in the rest of this section.SPECIAL CONSIDERATIONS
The Color QuickDraw procedureSetStdCProcsis analogous to theSetStdProcsprocedure, which you should use with computers that support only basic QuickDraw. When drawing in a color graphics port, your application must always useSetStdCProcsinstead ofSetStdProcs.SEE ALSO
The data structure of typeQDProcsis described on page 3-35. TheSetStdCProcsprocedure is described in the chapter "Color QuickDraw."The chapter "Pictures" in this book describes how to replace the low-level routines that read and write pictures.