Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!elroy.jpl.nasa.gov!ncar!noao!asuvax!stjhmc!p88.f15.n300.z1.fidonet.org!Lawson.English From: Lawson.English@p88.f15.n300.z1.fidonet.org (Lawson English) Newsgroups: comp.sys.mac.programmer Subject: Window Zooming is a mystery to me Message-ID: <3688.27CBC1EE@stjhmc.fidonet.org> Date: 25 Feb 91 02:00:46 GMT Sender: ufgate@stjhmc.fidonet.org (newsout1.26) Organization: FidoNet node 1:300/15.88 - Tucson Apple Core, Tucson AZ Lines: 21 audit038@spacm1.spac.spc.com writes in a message to All A> 'm trying to implement zoomable windows in my application, but A> I don't understand the magic. It works but I don't understand A> why. When I use Think C's debugger to look at the window record A> I see the spareFlag set to 1 ( I have a zoomable window ) but A> I can't see the two rectangles that dataHandle suposedly references. A> I dereference the handle twice and it points to 0 not a structure A> of two rectangles. If I wanted to change the userState rectangle, A> how do I refer to it in C? Check in the Think Class Libraries. Under either CDesktop or CWindows there is a method to zoom windows. Look at the source for how it's done there... Lawson -- Uucp: ...{gatech,ames,rutgers}!ncar!asuvax!stjhmc!300!15.88!Lawson.English Internet: Lawson.English@p88.f15.n300.z1.fidonet.org