Path: 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: Date: 14 Jun 91 18:47:29 GMT References: <216@toshais.UUCP> Organization: Edmonton Remote Systems, Edmonton, AB, Canada Lines: 20 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