Typical implementation of a Win32 file (IDropTarget :: Drop)?

I am trying to make a program similar to Windows Explorer in C ++ without MFC.

It has a list view that shows file system directories and files.

I want to add target drop functionality to list view,

so I implemented the IDropTarget interface and registered hwnd.

With IDropTargetHelper, I simply achieved the desired drag & drop effect in the DragEnter, DragOver, DragLeave method.

But in the Drop method, the dropTargetHelper method was helpless.

My list shows only drop files.

Should I implement COPY, MOVE, LINK copy operations for dumped files for myself?

OR Is there a simple shell file operation helper that accepts a dropped IDataObject?


EDIT:

, , .

, , , : , , ..

, Windows.

+3
1

All Articles