SetWindowContentColor

Sets the color to which a window's content region is redrawn.

pascal OSStatus SetWindowContentColor (
                     WindowPtr window,
                     RGBColor *color);
window
A value of type WindowPtr . Pass a pointer to the window whose content color is being set.
color
A pointer to an RGBColor structure. Before calling SetWindowContentColor , set this structure to specify the content color to be used.
function result
A result code. See Result Codes.
DISCUSSION

If your application uses the SetWindowContentColor function, the window's content region is redrawn to the color you specify, without affecting the value specified in the window's CGrafPort structure for the current background color. Applications should use SetWindowContentColor instead of the SetWinColor function. See Drawing in a Window's Content Region for further discussion and an example of how your application might call the SetWindowContentColor function.

VERSION NOTES

Available with Mac OS 8.5 and later.

SEE ALSO

The function GetWindowContentColor .


� 1999 Apple Computer, Inc. – (Last Updated 18 March 99)