| |||
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
QuickDraw and compositing aren't great friends.
Draw your background with CG instead:
{
HIRect bounds;
CGContextRef context;
HIViewGetBounds( ref, &bounds ); // get the rectangle bounds
GetEventParameter( inEvent, kEventParamCGContextRef, typeCGContextRef,
NULL, sizeof( context ), NULL, &context );
CGContextSetRGBFillColor( context, 1, 0, 0, 1 ); // draw the non-privilege area in red
CGContextFillRect( context, bounds );
}
| References: | |
| >Window Backgrounds (again) (From: Jack Brindle <email@hidden>) | |
| >Re: Window Backgrounds (again) (From: David McLeod <email@hidden>) |
| Home | Archives | FAQ | Terms/Conditions | Contact | RSS | Lists | About |
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.