First, make sure to add ShellAPI to your uses clause, then use the DragAcceptFiles function in the OnCreate event for the form that will accept them. This will tell Windows to send WM_DROPFILES messages to the application that is registered to accept dropped files, for example: procedure TForm1.FormCreate(Sender: TObject); begin DragAcceptFiles(Handle, True); end; Then create a procedure that process the WM_DROPFILES message procedure DropFiles(var msg: TMessage ); message WM_DROPFILES; Example implementation:
Attributes | Values |
---|---|
rdfs:label |
|
rdfs:comment |
|
sameAs | |
dcterms:subject | |
dbkwik:delphi/prop...iPageUsesTemplate | |
abstract |
|