Hi Lane,
To automate standard Windows controls, TestComplete uses
Windows messages. So, mapping a custom control to the corresponding standard Windows control has effect only if the custom control handles Windows messages properly. The TListTreeView control doesn't seem to process Windows messages, that's why, Object Mapping has no effect on it.
A possible option is to enable
Text Recognition for the
AfxOleControl42 class - this should make TestComplete identify the tree items as individual objects in the Object Browser and during the test recording.
Or, if you prefer to automate the TListTreeView control using native methods, while still having user interaction events fired, I would recommend that you use an approach similar to the one I've suggested in
this thread of yours. That is, instead of using native methods to change the item selection, etc., use them to calculate the coordinates of the target item and then click by these coordinates. Judging by the
TListTreeView documentation, it seems that the
GetItemRect method is what you would need for this purpose.
By the way, be sure to cast your vote for the TListTreeView control in our survey, under the
ActiveX > Bennet-Tec Information Systems category:
http://smartbear.com/products/qa-tools/automated-testing/survey/If it receives enough votes, the TestComplete team will definitely consider implementing out-of-the-box support for this control.