Important: The information in this document is obsolete and should not be used for new development.
SetStdCProcs
You can use theSetStdCProcsprocedure to get aCQDProcsrecord with fields that point to Color QuickDraw's standard low-level routines. You can replace these low-level routines with your own, and then point to your modifiedCQDProcsrecord in thegrafProcsfield of aCGrafPortrecord to change Color QuickDraw's standard low-level behavior.
PROCEDURE SetStdCProcs (VAR cProcs: CQDProcs);
cProcs- Upon completion, a
CQDProcsrecord with fields that point to Color QuickDraw's standard low-level routines.DESCRIPTION
In thecProcsparameter, theSetStdCProcsprocedure returns aCQDProcsrecord with fields that point to the standard low-level routines. You can change one or more fields to point to your own routines and then set the color graphics port to use this modifiedCQDProcsrecord.SPECIAL CONSIDERATIONS
When drawing in a color graphics port, your application must always useSetStdCProcsinstead ofSetStdProcs.SEE ALSO
The routines you install in theCQDProcsrecord must have the same calling sequences as the standard basic QuickDraw routines, which are described in the chapter "QuickDraw Drawing" in this book. TheSetStdProcsprocedure is also described in the chapter "QuickDraw Drawing."The chapter "Pictures" in this book describes how to replace the low-level routines that read and write pictures.
The data structure of type
CQDProcsis described on page 4-51.