views:

33

answers:

1

I have an MDI application for which I do not have source for. I believe it is an MFC application. I need to automate some of it's functionality.

It has a form with a listview type control on it. I would like to be able to read that list from my new C# application to know what the items are so I can select the correct one. I have tried Spy++ from VS2008 but it cannot see the listview control. There are no windows messages that are useful. How can I make the items in this list available to my new application?

Thanks.

A: 

Is it appearing in Spy++ at all? If it is just a window handle then the whole control is custom drawn in which case you are pretty much out of luck.

The only time you would might be able to query this data would be if it was based on one of the Windows standard controls or if it allows you to query it using messages (which is unlikely unless it was designed to be automated)

Matt Breckon
Turns out you were right. It was not a standard windows control. Thanks.
Jeff Young