Xref: utzoo comp.sys.mac:29027 comp.sys.mac.programmer:5214 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!gatech!emory!phssra From: phssra@mathcs.emory.edu (Scott R. Anderson) Newsgroups: comp.sys.mac,comp.sys.mac.programmer Subject: Re: Window with no menu bar? Message-ID: <3858@emory.mathcs.emory.edu> Date: 25 Mar 89 20:55:59 GMT References: <15866@cup.portal.com> <2214@helios.ee.lbl.gov> Reply-To: phssra@emory.UUCP (Scott Robert Anderson) Followup-To: comp.sys.mac Distribution: usa Organization: Department of Physics, Emory University, Atlanta Lines: 33 In article <2214@helios.ee.lbl.gov> beard@ux3.lbl.gov (Patrick C Beard) writes: >In article <15866@cup.portal.com> David_Anthony_Guevara@cup.portal.com writes: >>I am writing an application which contains a "welcome" screen. I would like >>this window to occupy the entire Mac+ screen, but I can not get rid of the >>blank menu bar which is occupying 20 pixels at the top of the screen. I am >>working in Lightspeed C 3.01. Does anyone know how to get it so that the >>menu bar is not drawn? > >I am posting this as it may be of general interest. The only way that I've >found for removing the menu bar is to open a grafport (not a window), and >fill it with the deskttop pattern. This will draw over the menu bar. As >far as I know, though, there is no way to have a window overlay the menu >bar. I hope this helps. It *is* possible to cover the entire screen, including the menu bar, by simply redefining the variable GrayRgn, which defines the region where windows can be drawn. (I'm not sure why this information is so obscure, since so many people seem to need it.) Here is a fragment which has done the job for me: RgnHandle oldGrayRgn, allScreen; oldGrayRgn = GrayRgn; allScreen = NewRgn(); RectRgn(allScreen, &screenBits.bounds); GrayRgn = allScreen; You can then open a window which will not be clipped to the old GrayRgn. * * ** Scott Robert Anderson gatech!emoryu1!phssra * * * ** phssra@unix.cc.emory.edu phssra@emoryu1.bitnet * * * * * ** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *