Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!decvax!tektronix!reed!psu-cs!bartonr From: bartonr@psu-cs.UUCP (Robert Barton) Newsgroups: comp.sys.amiga.tech Subject: Finding the Workbench screen Message-ID: <1635@psu-cs.UUCP> Date: 12 Feb 89 14:37:25 GMT Reply-To: bartonr@psu-cs.UUCP (Robert Barton) Organization: Dept. of Computer Science, Portland State University; Portland OR Lines: 16 Article 3813 From: shimoda@infohh.rmi.de (Markus Schmidt) : > I remember Leo, flaming about someone Getting a pointer to > Workbench-Screen, since WB-Screen might disappear due to CloseWBench(). > Now, I need such a Pointer too. If I open a Window (small, 2 by 2 pix) > then, get the Pointer to WBench (by serarching a LockIBase()'d Screen- > List), is there anything else that could make me meditating (except > reading my taoistic books)? If you've already opened a window on the Workbench screen, you don't need to LockIBase() and search the screen list, just use window->WScreen. As long as your window stays open CloseWorkBench() won't be able to close the screen. By the way, notice that CloseWorkBench() will now return FALSE if the screen was already closed, contrary to what it says in the Intuition manual and the RKM.