Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!thunder.mcrcim.mcgill.edu!snorkelwacker.mit.edu!spool.mu.edu!uunet!elroy.jpl.nasa.gov!spacm1!audit038 From: audit038@spacm1.spac.spc.com Newsgroups: comp.sys.mac.programmer Subject: Window Zooming is a mystery to me Message-ID: <2302.27c24a1e@spacm1.spac.spc.com> Date: 20 Feb 91 10:06:22 GMT Organization: Security Pacific Automation Co., LA, CA Lines: 19 I'm trying to implement zoomable windows in my application, but I don't understand the magic. It works but I don't understand why. When I use Think C's debugger to look at the window record I see the spareFlag set to 1 ( I have a zoomable window ) but I can't see the two rectangles that dataHandle suposedly references. I dereference the handle twice and it points to 0 not a structure of two rectangles. If I wanted to change the userState rectangle, how do I refer to it in C? In the CTESample from DTS they have a zoomable window with no means of support. I see no references to the rectangles, and yet the window just zooms all over the place. Does the SizeWindow() routine change the userState? I hate to have this work without knowing what's going on. After looking at source code, technical notes, and IM I'm at a loss, can anyone throw some light on the subject? -- John Coffman