In all likelihood, your best bet is to subclass the window you want it to accept the files, then filter for the appropriate message. I can dig up some MSKB articles on it if you'd like.
Dave In a message dated Sun, 6 May 2001 11:47:29 PM Eastern Daylight Time, Johan Lindstrom <[EMAIL PROTECTED]> writes: << I wrote: >Anyone have any idea of things I have to think about if I want to try to >implement a drag-n-drop feature? I have already found the correct set of >functions and messages in the Win32 Reference. Ok, so I managed to tell a window to accept files dragged from the Explorer with the DragAcceptFiles() function (from the shell32.dll). When I drag the mouse over the window, the mouse pointer changes. When I drop, the window is sent a WM_DROPFILES event. My problem now is how I should capture this event. Naive first try: timer which triggers really often. In the event handler I call $myWindow->PeekMessage(WM_DROPFILES, WM_DROPFILES) and if it returns true, I call $myWindow->GetMessage(WM_DROPFILES, WM_DROPFILES) That works like one in ten times or something. Clearly not the way to go. So, any better way of detecting the WM_DROPFILES event? /J -- Johan Lindström, Sourcerer, Boss Casinos Ltd, Antigua [EMAIL PROTECTED] _______________________________________________ Perl-Win32-GUI-Users mailing list Perl-Win32-GUI-Users@lists.sourceforge.net http://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users >>