Delphi - Drag & Drop with ListView

后端 未结 2 1079
情深已故
情深已故 2021-01-03 08:59

Good evening :-)!

I have this code to use Drag & Drop method for files:

TForm1 = class(TForm)
...
public
    pr         


        
2条回答
  •  北荒
    北荒 (楼主)
    2021-01-03 09:47

    Your problem is, you're registering the list view window as a drop target, but handling the WM_DROPFILES message in the form class. The message is sent to the list view control, you should handle the message there.

提交回复
热议问题