Article View: borland.public.cppbuilder.nativeapi
Article #790Re: How can I take a screen shot?
From: Alan Bellingham
Date: Fri, 11 Jan 2008 22:14
Date: Fri, 11 Jan 2008 22:14
21 lines
1691 bytes
1691 bytes
"Bashar Termanini" <bashar-t@scs-net.org> wrote: >I use this code to capture the screen >HWND hWnd = GetDesktopWindow(); >HWND hDC = GetWindowDC( hWnd ); >Image1->Width = Screen->Width; >Image1->Height = Screen->Height; >BitBlt( Image1->Canvas->Handle, 0, 0, Screen->Width, Screen->Height, hDC, 0, >0, SRCCOPY ); >It works first time. But when the Desktop change it still give me the first >screen shot. Hmmm. You don't call the release functions - ReleaseDC() for example. So next time you call this, you say you're getting the same results as previous? Alan Bellingham -- Team Browns <url:http://www.borland.com/newsgroups/> Borland newsgroup descriptions <url:http://www.borland.com/newsgroups/netiquette.html> netiquette
Technical Details
Message-ID:
<pfqfo3t97olfv9tjbj7r6uin0gblfr25fc@4ax.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<477eabc5@newsgroups.borland.com> <MPG.21e8f11d54bf16ac9899c6@newsgroups.borland.com> <4787e357@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,9a955b0dfec9583 X-Google-Attributes: gid10cc67,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Alan Bellingham <alanb@episys.com> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Re: How can I take a screen shot? Date: Fri, 11 Jan 2008 22:14:15 +0000 Reply-To: alanb@episys.com Message-ID: <pfqfo3t97olfv9tjbj7r6uin0gblfr25fc@4ax.com> References: <477eabc5@newsgroups.borland.com> <MPG.21e8f11d54bf16ac9899c6@newsgroups.borland.com> <4787e357@newsgroups.borland.com> X-Newsreader: Forte Agent 4.2/32.1118 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 62.49.31.105 X-Trace: newsgroups.borland.com 1200089653 62.49.31.105 (11 Jan 2008 14:14:13 -0700) Lines: 21 Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail