🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.sun
Article #10015

Re: How Do I Get a Pointer to the Current Window

#10015
From: Hsuan Chang
Date: Tue, 03 Jan 1989 15:20
27 lines
1220 bytes
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
Technical Details
Message-ID: <8812211740.AA10542@ip3>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!rutgers!cmcl2!husc6!rice!sun-spots-request

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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