Article View: borland.public.cppbuilder.nativeapi
Article #2402Re: Getting text from an external Grid
From: Remy Lebeau (TeamB)
Date: Wed, 28 Feb 2007 17:26
Date: Wed, 28 Feb 2007 17:26
31 lines
2014 bytes
2014 bytes
"Dan" <Dan@do.not.spam> wrote in message news:45e59a3a$1@newsgroups.borland.com... > For external String Grids, those messages don't seem to work. No, they do not. TStringGrid is a completely custom-written control. It does not provide any kind of external access at all, sorry. If you are trying to access a grid in a program that you wrote yourself, or have control of its source code, then you would have to implement your own access, such as by creating your own message (I would suggest basing it on WM_COPYDATA) that the parent form handles on the grid's behalf. > Do I have to get a handle of an object within the stringgrid? No, because there is none. > Spy++ doesn't seem to find any other handle other than the grid. Exactly. There is only one HWND available, and it is for the overall grid window. The text is not stored inside that HWND at all. It is stored in memory only, and then manually drawn onto the HWND's HDC when needed. > Am I using the wrong windows message? No. There simply aren't any available for grids in the first place. Gambit
Technical Details
Message-ID:
<45e5bb7e$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<45e59a3a$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> Subject: Re: Getting text from an external Grid Date: Wed, 28 Feb 2007 09:26:47 -0800 Lines: 33 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: <45e5bb7e$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1172683646 75.83.34.171 (28 Feb 2007 09:27:26 -0800) Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.maxwell.syr.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail