🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.windows.ms.programmer
Article #3279

Re: Writing to Root window

#3279
From: Mike Coward
Date: Fri, 14 Jun 1991 18:47
20 lines
1082 bytes
swonk@toshais.UUCP (Glenn L. Swonk) writes:

> Can anyone suggest a way to write (draw) on the
> root window? Does anyone know how the screen
> saver programs like screenpeace, intermission or
> afterdark work?
> glenn
 
The easiest way to get a device context to the screen
is to call GetDC with a parameter of 0.  ie:
ScreenDC = GetDC(0);
Another way to do something similar to screen blankers
is to create a window with the dimensions of the screen
and write on that window...
Mike

/save

Mike Coward              mikec@ersys.edmonton.ab.ca
Edmonton Remote Systems:  Serving Northern Alberta since 1982
Technical Details
Message-ID: <uPoJ41w164w@ersys.edmonton.ab.ca>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!ccu.umanitoba.ca!herald.usask.ca!alberta!aunro!ersys!mikec
References: <216@toshais.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!ccu.umanitoba.ca!herald.usask.ca!alberta!aunro!ersys!mikec
From: mikec@ersys.edmonton.ab.ca (Mike Coward)
Newsgroups: comp.windows.ms.programmer
Subject: Re: Writing to Root window
Keywords: windows
Message-ID: <uPoJ41w164w@ersys.edmonton.ab.ca>
Date: 14 Jun 91 18:47:29 GMT
References: <216@toshais.UUCP>
Organization: Edmonton Remote Systems, Edmonton, AB, Canada
Lines: 20