sub Win32Drop { # print join(',',@_),"\n"; my ($w,$site,$msg,$wParam,$lParam) = @_; my ($x,$y,@files) = DropInfo($wParam); my $cb = $site->{'-dropcommand'}; $site->Apply(-entercommand => $x, $y, 0); if ($cb) { foreach my $file (@files) { # print "$file @ $x,$y\n"; $w->clipboardClear; $w->clipboardAppend('--',$file); $cb->Call('CLIPBOARD',$x,$y); } } $site->Apply(-entercommand => $x, $y, 1); return 0; }