Drag'n'drop
Hi!
I wanted to enable my app to accept external files dragged on its
surface (like you can drag and drop doc files into word, etc). I called
the "DragAcceptFiles" function (from shell32.dll) as follows:
{definition of the proc header}
procedure DragAcceptFiles(Handle:Integer; Accept:Boolean); external
'shell32.dll' name 'DragAcceptFiles';
...
{function call. mainform already exists}
DragAcceptFiles(form1.handle,true);
{where form1 is the mainform of my app}
There was no errormessage, it just didn't work. I tried "WordBool"
instead of "Boolean" in the proc header def statement as well, no
effect.
Pleaaase help me!
Thilo.
P.S.:Merry christmas, a happy new year and *%@?&!ing WinAPI
documentation!