Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Reading and selecting items in a list box
#5
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.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)