I notice that dcl_Tree_SelectSetFirstVisible does expand and scroll to display the item, but the item does not get selected. Is this a Bricscad issue or does the same happen in AutoCAD?
The problem happens also in AutoCAD. I'm not sure why it doesn't work correctly or whose fault it is, but it is definitely a bug.
On second thought, after a careful reading of the MSDN documentation (http://msdn.microsoft.com/en-us/library/windows/desktop/bb773736(v=vs.85).aspx), I believe this is working as designed. The name should be just SetFirstVisible, but it seems that the control uses the TVM_SELECTITEM message to do the work, hence "Select" in the name. I will correct the OpenDCL documentation.