Article View: borland.public.cppbuilder.nativeapi
Article #2422Re: Getting text from an external Grid
From: Remy Lebeau (TeamB)
Date: Thu, 01 Mar 2007 22:34
Date: Thu, 01 Mar 2007 22:34
30 lines
2161 bytes
2161 bytes
"Dan" <Dan@do.not.spam> wrote in message news:45e75113$1@newsgroups.borland.com... > > > What is HexIdOfGrid? > > The result of a FindWindowEx(...) function that identified the handle of > the grid I was looking for. Why are you casting it to a HANDLE? FindWindowEx() returns an HWND, and GetWindowDC() expects an HWND. > Forgive my frustration, but oh, I've tried, what's wrong with this code?: > > BitBlt(GetWindowDC(TheTImagePointer->Canvas->Handle),0,0,w,h,DCToTheGr id,0,0,PATCOPY); > > It doesn't copy anything. Look at that code, and compare it with the code I gave you in my last reply. See anything different? Your first parameter is wrong, so the function is failing. The TCanvas::Handle property is not an HWND. It is an HDC, so use it as-is. Also, why are you using PATCOPY? You are not copying a pattern. Gambit
Technical Details
Message-ID:
<45e75811$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<45e59a3a$1@newsgroups.borland.com> <45e5bb7e$1@newsgroups.borland.com> <45e5cfa5$1@newsgroups.borland.com> <45e5f6d3@newsgroups.borland.com> <45e5fd07$1@newsgroups.borland.com> <45e60f88$1@newsgroups.borland.com> <45e6f2f0$1@newsgroups.borland.com> <lnvdu29ua6a88fpbfof4eu9pb4d7t42pm4@4ax.com> <45e72444$1@newsgroups.borland.com> <45e733b3$1@newsgroups.borland.com> <45e73ae4@newsgroups.borland.com> <45e7425f$1@newsgroups.borland.com> <45e75113$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,3d58209a1f02789a X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <45e59a3a$1@newsgroups.borland.com> <45e5bb7e$1@newsgroups.borland.com> <45e5cfa5$1@newsgroups.borland.com> <45e5f6d3@newsgroups.borland.com> <45e5fd07$1@newsgroups.borland.com> <45e60f88$1@newsgroups.borland.com> <45e6f2f0$1@newsgroups.borland.com> <lnvdu29ua6a88fpbfof4eu9pb4d7t42pm4@4ax.com> <45e72444$1@newsgroups.borland.com> <45e733b3$1@newsgroups.borland.com> <45e73ae4@newsgroups.borland.com> <45e7425f$1@newsgroups.borland.com> <45e75113$1@newsgroups.borland.com> Subject: Re: Getting text from an external Grid Date: Thu, 1 Mar 2007 14:34:20 -0800 Lines: 32 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 75.83.34.171 Message-ID: <45e75811$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1172789265 75.83.34.171 (1 Mar 2007 14:47:45 -0800) Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail