Path: utzoo!utgpu!watmath!clyde!att!rutgers!cmcl2!nrl-cmf!ames!mailrus!cornell!batcomputer!itsgw!steinmetz!uunet!van-bc!root
From: lphillips@lpami.van-bc.UUCP (Larry Phillips)
Newsgroups: comp.sys.amiga.tech
Subject: Re: Finding The Workbench Screen
Message-ID: <1982@van-bc.UUCP>
Date: 28 Nov 88 14:36:02 GMT
Sender: root@van-bc.UUCP
Lines: 20


> How can I find the screen structure for the current Workbench
> Screen short of opening a window on it and then looking in
> the Window structure? 

  Easiest path for finding the WB screen is through IntuitionBase,
FirstScreen, Flags. Just walk the screen list until you find the
one with the Flags bit ($0001) set. This is the WB. It's always
been first whenever I've looked.

-larry

--
"Intelligent CPU?  I thought you said Intel CPU!" 
        -Anonymous IBM designer-
+----------------------------------------------------------------+ 
|   //   Larry Phillips                                          |
| \X/    lpami.wimsey.bc.ca!lphillips or van-bc!lpami!lphillips  |
|        COMPUSERVE: 76703,4322                                  |
+----------------------------------------------------------------+