🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: objects behind windows

#10
From: mag
Date: Thu, 10 Aug 1995 07:14
30 lines
1368 bytes
In article <DD27up.8yx@midway.uchicago.edu>, mrh3@woodlawn.uchicago.edu 
(Khedron)says...
>
>  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 can say 
{
HDC hdcScreen;
if ((NULL == (hdcScreen = GetDC(NULL)))
  {
// Error handling
  }
// at this point hdcScreen is the handle to the Device Context fro the
// entire screen.

Then you can do whatever you do with the screen.

-- 
MAG
/* ********************************************************
To understand recursion one must first understand recursion
******************************************************** */
Technical Details
Message-ID: <DD32sE.LG3@eskimo.com>
Path: arc1-ca.pugleaf.net!in1.uu.net!eskimo!usenet
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!in1.uu.net!eskimo!usenet
From: mag@eskimo.com (mag)
Subject: Re: objects behind windows
X-Nntp-Posting-Host: tia1.eskimo.com
Message-ID: <DD32sE.LG3@eskimo.com>
Sender: usenet@eskimo.com (News User Id)
Organization: *.*
X-Newsreader: WinVN 0.93.10
References: <DD27up.8yx@midway.uchicago.edu>
Mime-Version: 1.0
Date: Thu, 10 Aug 1995 07:14:38 GMT