[comp.sys.mac.programmer] CWindow content color

mikeoro@hubcap.clemson.edu (Michael K O'Rourke) (07/27/89)

What is the proper way to change the content color of a color window?
I want to have the background color of the window user definable and I
am guessing that i should define that color as the content color in the
window's color table.  That way, when the window is erased anywhere it will
show the chosen color and not white or the color someone has chosen for   
there mac.

If changing the color table is not right, or even if it is, what is the 
easiest way?

I tried just doing a paintrect and making the chosen content color the fore
color beforehand, but the window will still come up as the wrong color 
when it is first shown.  I don't want that color change to show.

Thanx,

Michael O'Rourke