- Window Messages - Help I am stumped!
- Posted by Mark Everett on April 17th, 2004
Hi,
I have a program which 'scrapes' listboxes from running processes. It
works just great grabbing SysListView32 classes using FindWindow and
then sending the appropriate messages to obtain the contents and
header info. However some of the programs I need to scrape are written
in MFC and the list controls are in the form AFX:XXXXXXX. Others have
been written using delphi and have a TListView class.
I have tried sending the normal LVM_ messages to every AFX control in
the process and all have no effect. I take it this is because the
window is an MFC/Delphi wrapper around the win32 control and as such
the messages are not supported at that level. Does anybody know how I
can scrape these controls? Can I get access to the underlying win32
window?
There must be a way of doing this but I am fresh out of ideas and
can't find any information anywhere. Many thanks in advance; any ideas
are greatly appreciated.
Cheers
Mark
- Posted by Raymond Chen on April 18th, 2004
Use ActiveAccessibility. Any accessible program will expose its
objects via AA. This saves you from having to understand every
control out there.
On 17 Apr 2004 09:37:53 -0700, quortex@hotmail.com (Mark Everett)
wrote:
- Posted by Mark Everett on April 19th, 2004
Hi Raymond,
Thanks for the reply. I will look into this although does this mean
that the objects themselves have to have been written supporting the
ActiveAccessibility interface in the first place?
If that is so then I aren't so sure it will help me.
Many Thanks
Mark
Raymond Chen <http://guest@weblogs.asp.net/oldnewthing/> wrote in message news:<gcs380l8coa7d8hqtugok7u7mqrmnor5op@4ax.com>. ..