Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!samsung!uunet!stanford.edu!leland.Stanford.EDU!jessica.stanford.edu!aaron From: aaron@jessica.stanford.edu (Aaron Wallace) Newsgroups: comp.windows.ms.programmer Subject: Re: Writing to Root window Keywords: windows Message-ID: <1991Jun24.160622.2910@leland.Stanford.EDU> Date: 24 Jun 91 16:06:22 GMT References: <216@toshais.UUCP> <73102@microsoft.UUCP> Sender: Aaron Wallace Organization: Academic Information Resources Lines: 18 In article <73102@microsoft.UUCP> kensy@microsoft.UUCP (Ken SYKES) writes: >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. Are these the same? I thought that the former got a DC to the entire screen, while the latter gets a DC which is clipped to all visible windows on the screen... Aaron Wallace