Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!cmcl2!husc6!rice!sun-spots-request From: hsc@vuse.vanderbilt.edu (Hsuan Chang) Newsgroups: comp.sys.sun Subject: Re: How Do I Get a Pointer to the Current Window Message-ID: <8812211740.AA10542@ip3> Date: 3 Jan 89 15:20:31 GMT Sender: usenet@rice.edu Organization: Sun-Spots Lines: 27 Approved: Sun-Spots@rice.edu Original-Date: Wed, 21 Dec 88 11:40:11 CST X-Sun-Spots-Digest: Volume 7, Issue 84, message 9 of 14 You may get a /dev/win? sort of pointer by using getenv("WINDOW_ME") and then obtain an fd to it. Sun has provided a set of win_* routines to access (via fd) attributes of the window. For instance, win_getrect(fd, &rect) gets you the size and location of the window, where rect is Rect rect; I don't know if it's worth to develop your own menu pulling mechamism. You may find it necessary to read the SunView System Programmer's Guide, and the definitions in basetools.h and othertools.h under /usr/src/sun/suntool. Hope this helps. Hsuan Chang Image Processing Lab Computer Science Department Vanderbilt University Nashville, Tn 37235 (615) 322-0962 hsc@vuse.vanderbilt.edu