🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Writing to Root window

#3359
From: Ken SYKES
Date: Sun, 23 Jun 1991 21:29
14 lines
952 bytes
In article <uPoJ41w164w@ersys.edmonton.ab.ca> mikec@ersys.edmonton.ab.ca (Mike Coward) writes:
>swonk@toshais.UUCP (Glenn L. Swonk) writes:
>The easiest way to get a device context to the screen
>is to call GetDC with a parameter of 0.  ie:
>ScreenDC = GetDC(0);


Or ScreenDC = GetDC(GetDesktopWindow());

That way you aren't depending on NULL behavior.  This function is
new for 3.0.

Ken Sykes
Disclaimer: The above opinions are solely my own.
Technical Details
Message-ID: <73102@microsoft.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!uunet!microsoft!kensy
References: <216@toshais.UUCP> <uPoJ41w164w@ersys.edmonton.ab.ca>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!cs.utexas.edu!uunet!microsoft!kensy
From: kensy@microsoft.UUCP (Ken SYKES)
Newsgroups: comp.windows.ms.programmer
Subject: Re: Writing to Root window
Keywords: windows
Message-ID: <73102@microsoft.UUCP>
Date: 23 Jun 91 21:29:24 GMT
References: <216@toshais.UUCP> <uPoJ41w164w@ersys.edmonton.ab.ca>
Reply-To: kensy@microsoft.UUCP (Ken SYKES)
Organization: Microsoft Corp., Redmond WA
Lines: 14