Path: utzoo!utgpu!news-server.csri.toronto.edu!clyde.concordia.ca!uunet!jarthur!usc!samsung!sdd.hp.com!wuarchive!psuvax1!psuvm!cunyvm!byuvm!byuvax!yoda!ldg From: ldg@yoda.byu.edu Newsgroups: comp.sys.mac.programmer Subject: Re: Resizable windows Summary: Erase what you don't want or clip to what you do. Keywords: Grow Icon, window Message-ID: <254ldg@yoda.byu.edu> Date: 15 Oct 90 03:32:55 GMT References: <90287.182643CXT105@psuvm.psu.edu> Reply-To: ldg@yoda.byu.edu (Lyle D. Gunderson) Organization: Brigham Young University, Provo, Utah Lines: 26 In <90287.182643CXT105@psuvm.psu.edu>, Christopher Tate writes: >Problem: I want a resizable window, with the grow box in the lower right >and all that, but I do not want any scroll bars. I JUST want the box that >indicates the window is resizable. > >How do people usually do this? The standard DrawGrowIcon() routine draws >lines for the scroll bar borders; I don't want these. Do I *really* have >to hack up my own WDEF to handle resizable windows without scroll bars? > [...] I just call DrawGrowIcon() then erase the borders. If you don't want the borders to even flicker into existance, set the clipRgn to the appropriately-sized rectangle in the lower-right corner (call ClipRect()) before you call DrawGrowIcon(). Lyle D. Gunderson N6KSZ | "Any technology without | ldg@yoda.byu.edu 350 CB/BYU | some attendant risk of misuse | CIS: 73760,2354 Provo UT 84602 | is probably trivial" | GEnie: L.GUNDERSON | --Louise Kohl | AOL: LGunderson