Native Win32 C++ OLE Drag Multiple Listview items (not files)

I have two Listviews in my application that will be able to drag&drop items to each other. The Listview items are not files, but they are simply items created from database data. The items do have a bitmap and a text and (potentially) sub-items. I am trying to use OLE to drag multiple items at once, but so far I am only able to drag one item at a time. Currently I use a custom FORMATETC flag created with RegisterClipboardFormat() and TYMED_GLOBAL. I made a custom class that contains all the to-be-dragged item info and I put that class into STGMEDIUM.hGlobal. That works for one item, but I don't know how I can make this work for when I drag multiple items. Does anyone have a suggestion? Thanks in advance!
-
1 additional answer
Sort by: Oldest
-
RLWA32 30,101 Reputation points
2021-04-29T00:42:36.493+00:00 When you add the information about the individual items to be transferred to the data object you could also add information that indicates how many data items are included in the transfer. For example, take a look at the documentation for Shell data transfer. It uses one format to indicate how many files are included in the transfer and another format for the actual data to be transferred.
-