Carbon


SetWindowContentColor

Header: MacWindows.h Carbon status: Supported

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

OSStatus SetWindowContentColor (
    WindowRef window, 
    const RGBColor *color
);
Parameter descriptions
window

A pointer to the window whose content color is being set.

color

Set this structure to specify the content color to be used.

function result

A result code.

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 also the function GetWindowContentColor.

VERSION NOTES

This function is available with Mac OS 8.5 and later.

AVAILABILITY

Supported in Carbon. Available in Carbon 1.0.2 and later when running Mac OS 8.5 or later.


© 2000 Apple Computer, Inc. (Last Updated 6/30/2000)