Important: The information in this document is obsolete and should not be used for new development.
SetDeskCPat
Use theSetDeskCPatprocedure to set the desktop pattern on a computer that supports Color QuickDraw.
PROCEDURE SetDeskCPat (deskPixPat: PixPatHandle);
- deskPixPat
- A handle to a pixel pattern.
DESCRIPTION
TheSetDeskCPatprocedure 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 thedeskPixPatparameter isNIL,SetDeskCPatuses 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.![]()
DeskPatternor 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 ofpCDeskPatis 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.