Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!menudo.uh.edu!jetson.uh.edu!englhq From: englhq@jetson.uh.edu Newsgroups: comp.sys.mac.programmer Subject: GrowWindow Woes, Help Please Message-ID: <9190.2810258e@jetson.uh.edu> Date: 20 Apr 91 11:27:10 CDT Organization: University of Houston Lines: 26 I'm working through the window techniques in Huxham, Burnard and Takatsuka's USING THE MACINTOSH TOOLBOX WITH C, and I'm stuck at the GrowWindow function. The code goes like this: case inGrow: newSize=GrowWindow(whichWindow,theEvent.where,&limitRect); SizeWindow(whichWindow, LoWord(newSize),HiWord(newSize),0xff); contRgnHnd=theWindowRec.contRgn; tempRect=(*contRgnHnd)->rgnBBox; EraseRect(&tempRect); DrawGrowIcon(theWindow); break; What happens is, the outline of the scroll bars and size box remain in the middle of the window. i.e. It seems that the EraseRect isn't doing what I think it's supposed to. The maddening part of this is that when I step through with the debugger everything performs as advertised; tempRect has the correct coordinates and the content region is erased just fine. WHAT IS GOING ON HERE?? As soon as I remove the breakpoint, the window goes back to its old tricks. Any advice is greatly appreciated. Duane Franklet englhq@jetson.uh.edu