fgd3%jc3b21.uucp%CERNVAX.BITNET@cunyvm.cuny.edu (11/28/88)
From article <6356@netnews.upenn.edu>, by ranjit@eniac.seas.upenn.edu (R. Bhatnagar): > 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? Mostly I want to find its size so I can > open another of the same size. It's something easy, but it's not easy to find. You need to call Success = GetScreenData(Buffer, Size, Type, Screen) Where BOOL Success; CPTR Buffer; USHORT Size; USHORT Type; struct Screen *Screen; This function copies into the caller's buffer data from a screen structure. Typically, this call will be used to find the size, title bar height, and other values for a standard screen, such as the Workbench screen. To get the data for the Workbench screen, one would call GetScreenData(buff, sizeof(struct Screen), WBENCHSCREEN, NULL) Note: If the requested standard screen is not open, this function will have the effect of opening it. To read about GetScreenData() in the Autodocs, start reading about GetPrefs(). Because of something wrong with the file GetScreenData doesn't show up in the outline. You have to page through the GetPrefs() section to find it. --Fabbian Dufoe 350 Ling-A-Mor Terrace South St. Petersburg, Florida 33705 813-823-2350 UUCP: ...codas!usfvax2!jc3b21!fgd3 ...uunet!pdn!jc3b21!fgd3