Path: utzoo!attcan!uunet!portal!cup.portal.com!nicky From: nicky@cup.portal.com (nick john pilch) Newsgroups: comp.sys.mac.programmer Subject: Re: Drawing in the menubar Message-ID: <11866@cup.portal.com> Date: 28 Nov 88 19:35:37 GMT References: <616@wasatch.UUCP> <2589@munnari.oz> Organization: The Portal System (TM) Lines: 19 >Try this : > >{ >WindowPtr windP; > > windP = NewWindow(... with the bounds set the screenBits.bounds...); > UnionRgn(windP->visRgn,WMgrPort->visRgn,windP->visRgn); > >} > >In normal windows the visRgn excludes the menubar, but the WMgrPort >visRgn includes the whole screen. Since the regions are both in global coords, >no problems doing an UnionRgn(). Watch out. You altering the visRgn of a window, which is a no-no, especially under Multifinder. Nick Pilch nicky@cup.portal.com