Identifying and querying controls

Hey.
I was wondering how to id say a tree ctrl in another program, and then query some information from it? I was thinking about injecting a DLL into the running process but i am not sure where to get the documentation for controls such as ListBox, to get the currently selected item. I was unable to find anything so detailed on MSDN. Did i miss something? Or is there a better way to do this?
Cheers.
[410 byte] By [Quell] at [2007-11-20 11:48:00]
# 1 Re: Identifying and querying controls
Search for notification messages like LVN_xyz (listview), TVN_xyz (treeview), etc...
Marc G at 2007-11-9 13:33:05 >