Path: 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> Reply-To: kensy@microsoft.UUCP (Ken SYKES) Organization: Microsoft Corp., Redmond WA Lines: 14 In article 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.