🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #8388

Re: Get text from Treeview & get window events

#8388
From: Segal
Date: Wed, 27 Oct 2004 22:25
40 lines
2833 bytes
Remy Lebeau (TeamB) wrote:
> "Segal" <none@none.spam.sucks.balls> wrote in message
> news:4180082f$1@newsgroups.borland.com...
>
>> Thank you very much for replying. I have never done
>> this before, are there any examples?
>
> Go to http://www.deja.com or http://www.mers.com and search through
> the newsgroup archives.

I was searchign around google groups with a group filter of
borland.public.cppbuilder* before my first post.

>> I'm not getting how I would get notified? Would I use some
>> sort of call back function, to make it "event driven" ?
>
> Yes.  That is what hooks are - callback functions when things happen.
>
>> So I would have to poll it ever so often?
>
> No.  If you set up a hook to be able to query the TreeView in the
> first place, then that same code can also subclass the TreeView since
> it is already running from within the foriegn process.  Just make
> sure to remove the subclassing before you remove your hook.

I understand that is what needs to be done. What I really don't know ot
do is settings up the hook in the first place, and using it between my
BCB app and a dll,  I've *never* done anything quite like this, and
really am not sure for the life of me how to put what you said into
code.

I don't like wasting anyone's time, and I'm not a free loader who
doesn't want to seach, (I have been, google groups as well as some web
searchs (google web) centering around win api, but I just can't find a
good example of how to do something liek this.)

I learn a heck of a lot better from examples. If I'm reasonably familiar
with a topic I might get it from description, but more often then not I
learn the most from good examples. So if you cna really help in this
reguard I'd really appreciate it.
Technical Details
Message-ID: <418020e9$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!newsfeed.icl.net!newsfeed.wirehub.nl!194.72.7.126.MISMATCH!news-peer-test!btnet!newsfeed.bt.es!195.5.65.34.MISMATCH!caladan.arrakis.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <417fdf69$1@newsgroups.borland.com> <417fe585$1@newsgroups.borland.com> <4180082f$1@newsgroups.borland.com> <41800b0c$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,490c03cee5f5091
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Segal" <none@none.spam.sucks.balls>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <417fdf69$1@newsgroups.borland.com> <417fe585$1@newsgroups.borland.com> <4180082f$1@newsgroups.borland.com> <41800b0c$1@newsgroups.borland.com>
Subject: Re: Get text from Treeview & get window events
Date: Wed, 27 Oct 2004 15:25:51 -0700
Lines: 42
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: 66.234.219.101
Message-ID: <418020e9$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1098916073 66.234.219.101 (27 Oct 2004 15:27:53 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!newsfeed.icl.net!newsfeed.wirehub.nl!194.72.7.126.MISMATCH!news-peer-test!btnet!newsfeed.bt.es!195.5.65.34.MISMATCH!caladan.arrakis.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail