Path: utzoo!attcan!uunet!snorkelwacker!bu.edu!dartvax!eleazar.dartmouth.edu!llama From: llama@eleazar.dartmouth.edu (Joe Francis) Newsgroups: comp.sys.mac.programmer Subject: Re: Resizable windows Message-ID: <25129@dartvax.Dartmouth.EDU> Date: 15 Oct 90 16:28:35 GMT References: <90287.182643CXT105@psuvm.psu.edu> Sender: news@dartvax.Dartmouth.EDU Organization: Dartmouth College, Hanover, NH Lines: 26 In article <90287.182643CXT105@psuvm.psu.edu> CXT105@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 suppose I could just draw the grow icon myself, and fake it, but this >sounds pretty ugly. Is there a "better" way, or better yet, an "approved" >way? I don't know what the "approved" way is, but I do the following: 1) Save the current clip region. 2) Set the current clip region to where the grom icon appears. 3) Call DrawGrowIcon(wind); 4) Restore clip region. Perhaps kludgy, but it has the advantage that the grow icon is still drawn by DrawGrowIcon, so it will be drawn in the correct color on color systems, will still "do the right thing" if someone patches DrawGrowIcon for some bizarre region. ----------------------------------------------------------------------------- "Read My Lips: No Nude Texans!" - George Bush clearing up a misunderstanding