How to find the property og an Image on TreeView?
I need to compare the Image that located on a tree view and compare it while testing.
If you look at the Image that attached there is a tree view and near part of the object there is a Image of an Locker or an "X".
after each clicking on the Item I need to check if the Image has been change how can I do it?
Re: How to find the property og an Image on TreeVi
Depending on the type of the tree control, this can be done in several ways. The general way is to get the coordinates and the size of a tree item and search for the needed icon within this area. In case of a standard tree view control, you can get coordinates and the size of an item by using the Bounds property of a Win32TreeViewItem object (see the 'Win32TreeViewItem Object' help topic). This object can be obtained via the wItems property of the tree view control (see the 'Win32TreeView.wItems' topic). To learn how to search for an image within a specific area, see the 'Regions.Find' help topic.