Important: The information in this document is obsolete and should not be used for new development.
SetDeskCPat
Use theSetDeskCPat
procedure to set the desktop pattern on a computer that supports Color QuickDraw.
PROCEDURE SetDeskCPat (deskPixPat: PixPatHandle);
- deskPixPat
- A handle to a pixel pattern.
DESCRIPTION
TheSetDeskCPat
procedure sets the desktop pattern to a specified pixel pattern, which can be drawn in more than two colors. After a call toSetDeskCPat
, the desktop is automatically redrawn in the new pattern. If the specified pattern is a binary pattern (with a pattern type of 0), it is drawn is the current foreground and background colors. If the value of thedeskPixPat
parameter isNIL
,SetDeskCPat
uses the standard binary desk pattern (that is, the'ppat'
resource with resource ID 16).
The Window Manager's desktop-painting routines can paint the desktop either in the binary pattern stored in the global variable
- Note
- For compatibility with other Macintosh applications and the
system software, applications should ordinarily not change the
desktop pattern.DeskPattern
or in a new pixel pattern. The desktop pattern used at startup is determined by the value of the parameter-RAM bit flag calledpCDeskPat
. If the value ofpCDeskPat
is 0, the Window Manager uses the new pixel pattern; if not, it uses the binary pattern stored inDeskPattern
. The user can change the color pattern through the General Controls panel, which changes the value
ofpCDeskPat
.