PB 2019 R3 2728
I am implementing a drag/drop file feature using DragAcceptFiles() but have run into a problem. I am using a ListView to display a list of document types for the user to drop files onto. This will then auto associate those files to the document type they dropped it on. What I am running into is I cannot get the ListView Index once the file has been dropped. I thought there would be a GetObjectAtPointer() call but that is only valid for the DW. The pbm_lButtonUp event has the X/Y position but I am unable to figure out how to get the ListView index from that. It seems all the ListView events that deal with drag/drop are only fired if starting in that control – not when coming from the outside. Has anyone done anything like this?
I know I can use a DataWindow control which has the GetObjectAtPointer() but I need this list to auto expand/collapse depending on the size of the window so it rules that out (unless I have no other option).
Thank you,
Chris Craft