🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.ms-windows.programmer.graphics
Article #11

Re: objects behind windows

#11
From: Alex W. Rogoyski
Date: Fri, 11 Aug 1995 23:17
20 lines
1368 bytes
mrh3@woodlawn.uchicago.edu (Khedron) wrote:
>  I want to know how to do graphics in Windows that will not be confined
>to a specific window, but can float around the desktop and hide behind
>windows.  My goal is to write my own version of x-roaches for Windows,
>just for my own personal amusement.
>
>  What resources are recommended, and where do I start?
>
>								Michael
>

You could use GetDC(NULL) to get a HDC to the screen. There is a function 
to get a list of all visible windows but I can't remember the name. 
The function returns a HWND and it is called something like GetWindow. 
Then you could use GetWindowRect to get the boundaries or each window. It 
would be a little complicated but with that info you should be able to 
write your own version of x-roaches.

Have a nice day,
Alex W. Rogoyski
Technical Details
Message-ID: <DD661F.C4F@Cadence.COM>
Path: arc1-ca.pugleaf.net!nntp.cadence.com!news
References: <DD27up.8yx@midway.uchicago.edu>

Show Full Headers
Complete Article Headers
Newsgroups: comp.os.ms-windows.programmer.graphics,comp.lang.c
Path: arc1-ca.pugleaf.net!nntp.cadence.com!news
From: "Alex W. Rogoyski" <alexr@cadence.com>
Subject: Re: objects behind windows
Content-Type: text/plain; charset=us-ascii
Message-ID: <DD661F.C4F@Cadence.COM>
To: mrh3@midway.uchicago.edu
Sender: news@Cadence.COM
Content-Transfer-Encoding: 7bit
Organization: Cadence Design Systems
References: <DD27up.8yx@midway.uchicago.edu>
Mime-Version: 1.0
Date: Fri, 11 Aug 1995 23:17:39 GMT
X-Mailer: Mozilla 1.1N (Windows; I; 32bit)