I am using Embarcadero RAD Studio XE to develop an application. I am trying catch the file(s) drag and drop to the application with the following code
TMainF
in TForm.Create use two lines
TForm.Create
ChangeWindowMessageFilter (WM_DROPFILES, MSGFLT_ADD); ChangeWindowMessageFilter (WM_COPYGLOBALDATA, MSGFLT_ADD);
that's all