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!