I have a control consisting of two listboxes which allow the user to drag and drop items from the left listbox to the right listbox to copy them across, or drag and drop items within the right listbox to change their order.
I have got the mechanics of it working reasonably well using the OLEDragDrop methods of the listboxes, however it is not as slick as I would like. There are three improvements I would like to make and would gratefully appreciate any help or advice:
1) My algorithm for identifying which item in the listbox the cursor is over has been formulated through trial and error (using the FONTMETRIC function) and is not wholly reliable. Is there a 100% accurate means to determine this
2) Better yet, is there a way of highlighting the listbox item that the cursor is dragging over so that the user can see exactly where the dragged item will be dropped
3) Also, is there a standard DragIcon to use for listbox items and, if so, where can I obtain it
Many thanks.