Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
UtilCode/WindowUtil.c
void DrawClippedGrowIcon(WindowPtr theWindow) |
/* |
Clip out the lines that appear |
on the sides of a window with a grow icon. |
*/ |
{ |
Rect clip; |
RgnHandle oldClip; |
oldClip = NewRgn(); |
if(!oldClip) { |
/* WE ARE IN HELL */ |
DebugStr("\pHELL HAS BROKE LOOSE __ NEWRGN FDAILED"); |
} |
GetClip(oldClip); |
clip = theWindow->portRect; |
clip.left = clip.right - 15; |
clip.top = clip.bottom - 15; |
ClipRect(&clip); |
DrawGrowIcon(theWindow); |
SetClip(oldClip); |
} |
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-01-14