BackPat
PatPtr newPat ; address of a Pattern structure BackPat sets the background pattern, which is used by all Quickdraw erase operations.
newPat is the address of an 8-byte Pattern structure.
Notes: This replaces the 8-byte bkPat field of the active GrafPort. You may use one of the Quickdraw global patterns, white, gray, ltGray, dkGray, or black:
BackPat( dkGray ); /* external constant */ Or you can create a pattern and use that:
StuffHex( &myPat, "\p0202020404040808" ); Or you can go for the current desktop pattern (as set by the user via the
Control Panel DA).
BackPat( DeskPattern ); /* defined in Windows.h */ resource file:
Pattern myPat; /* structure to hold pattern */