Article View: borland.public.cppbuilder.nativeapi
Article #13014Re: Control pointer from window handle
From: Mark Guerrieri
Date: Wed, 05 Nov 2003 05:54
Date: Wed, 05 Nov 2003 05:54
26 lines
1935 bytes
1935 bytes
You could use Screen->CustomForms and recursively iterate all the TComponent decendants, checking for a TDBGrid with a matching Handle property, but this may or may not work due to a DLL having a different TApplication then the client app. If it were a hook package, it would definately work. You'd have to try it and see what happens. Mark "nicolasr" <nicolasrNOSPAMATSIGNgmx.net> wrote in message news:3fa863e5@newsgroups.borland.com... > Hi, > thanks for your reply. I think I didn't make myself clear enough. > My hook DLL is loaded in the target app via SetWindowsHookEx. > So it is in the same address space as the TDBGrid. I can pass the > Grid handle to the DLL via shared memory. Now the DLL has the > handle and could work with the grid but it doesn't know its pointer, > only the handle. > > I guess, however, you're right, there is probably no relation between the > handle > and the grid instance. > > regards, > Nick > >
Technical Details
Message-ID:
<3fa890aa$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3fa70ef0@newsgroups.borland.com> <3fa77bef$1@newsgroups.borland.com> <3fa863e5@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10cc67,eb9c48fffbb335b9 X-Google-Attributes: gid10cc67,public X-Google-ArrivalTime: 2003-11-04 22:09:13 PST From: "Mark Guerrieri" <markg11@comcast.net> Newsgroups: borland.public.cppbuilder.nativeapi References: <3fa70ef0@newsgroups.borland.com> <3fa77bef$1@newsgroups.borland.com> <3fa863e5@newsgroups.borland.com> Subject: Re: Control pointer from window handle Date: Wed, 5 Nov 2003 00:54:53 -0500 Lines: 28 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 NNTP-Posting-Host: 68.45.79.46 Message-ID: <3fa890aa$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1068011690 68.45.79.46 (4 Nov 2003 21:54:50 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail