04-05-2007, 06:21 AM
Try DoDefaultAction instead of select (it should do "Double Click"). Or LB_Select (item index is a.elem-1).
If it needs real mouse click, to scroll into view try SELFLAG_TAKEFOCUS|SELFLAG_TAKESELECTION instead of SELFLAG_ADDSELECTION. I think it should scroll automatically. Or send LB_SETTOPINDEX message. Don't use LVM_ messages as they are for list view controls.
If it needs real mouse click, to scroll into view try SELFLAG_TAKEFOCUS|SELFLAG_TAKESELECTION instead of SELFLAG_ADDSELECTION. I think it should scroll automatically. Or send LB_SETTOPINDEX message. Don't use LVM_ messages as they are for list view controls.
