Article View: borland.public.cppbuilder.nativeapi
Article #8382Get text from Treeview & get window events
From: Segal
Date: Wed, 27 Oct 2004 17:46
Date: Wed, 27 Oct 2004 17:46
16 lines
1641 bytes
1641 bytes
Hello, I can get text (like a caption, or text from a textbox) from a given window of a program outside my program using WINAPI functions, but how does one get items in a Treeview in another program? Also, this same program I'm trying to "hook" pops up little message boxes that I'm trying to intercept and get the text from, but I'm a little stuck on the interception part. Only way I can think of is running a loop or a timer with FindWindow seeing is one of these little windows is present? Is there any way to "hook" a program so you can capture events? I want to be able to know when the foreign Treeview changes and also when a message window pops up. I would like to do this in the most efficient way. Thank you very much for any help with this.
Technical Details
Message-ID:
<417fdf69$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!news-out1.nntp.be!propagator2-sterling!news-in.nuthinbutnews.com!in.nntp.be!caladan.arrakis.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,490c03cee5f5091,start X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Segal" <none@none.spam.sucks.balls> Newsgroups: borland.public.cppbuilder.nativeapi Subject: Get text from Treeview & get window events Date: Wed, 27 Oct 2004 10:46:23 -0700 Lines: 18 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: <417fdf69$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1098899305 66.234.219.101 (27 Oct 2004 10:48:25 -0700) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.maxwell.syr.edu!news-out1.nntp.be!propagator2-sterling!news-in.nuthinbutnews.com!in.nntp.be!caladan.arrakis.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail