English
Source / code snippets

Drag Drop Explorer release

 

CompileMarkSeparation
 
07/15/07  
 




p.specht

On XProfan 11.2a free plus quotation marks brought:
'Drag and Drop with the Explorer release
'Orig.-Author: Thomas Hölzer
Def DragAcceptFiles(2) !"SHELL32","DragAcceptFiles"
Def DragFinish(1) !"SHELL32","DragFinish"
Def DragQueryFile(4) !"SHELL32","DragQueryFileA"
Def Sleep(1) !KERNEL32,Sleep
Declare end%,i%,Anzahl&,PFilename#,FileName$
Dim PFileName#,261' Max_Path +1, caution with Profan-Strings (only 255 characters!)
Cls
Window Title "Drag&Drop-example - terminate with rechtem Mausklick"
DragAcceptFiles(%hwnd,1)
Print "Eine or several Files from the Explorer in that Window ziehen"

WhileNot end%

    GetMessage

    IF (%message=563)

        anzahl&= DragQueryFile(&WParam,$FFFFFFFF,PFilename#,261);
        i%=0

        While i%<anzahl&

            DragQueryFile(&WParam,i%,PFilename#,261);
            filename$=String $(PFilename#,0)' caution, max 255 characters
            AddStrings filename$
            Inc i%

        Wend

        DragFinish(&WParam);
        Listbox$(Str $(anzahl&)+" Drag&Drop-File(en) empfangen",2)
        Clearlist

    Elseif %mousekey=2

        end%=1

    EndIf

Wend

Dispose PFileName#
DragAcceptFiles(%hwnd,0)
End
 
Computer: Gerät, daß es in Mikrosekunden erlaubt, 50.000 Fehler zu machen, zB 'daß' statt 'das'...
12/12/21  
 



Zum Quelltext


Topictitle, max. 100 characters.
 

Systemprofile:

no Systemprofil laid out. [anlegen]

XProfan:

 Posting  Font  Smilies  ▼ 

Please register circa a Posting To verfassen.
 

Topic-Options

5.397 Views

Untitledvor 0 min.
Gast.081510/03/24
Uwe Lang06/30/24
Member 862464105/12/24
Member 294243004/10/24
More...

Themeninformationen

this Topic has 2 subscriber:

p.specht (1x)
unbekannt (1x)


Admins  |  AGB  |  Applications  |  Authors  |  Chat  |  Privacy Policy  |  Download  |  Entrance  |  Help  |  Merchantportal  |  Imprint  |  Mart  |  Interfaces  |  SDK  |  Services  |  Games  |  Search  |  Support

One proposition all XProfan, The there's!


My XProfan
Private Messages
Own Storage Forum
Topics-Remember-List
Own Posts
Own Topics
Clipboard
Log off
 Deutsch English Français Español Italia
Translations

Privacy Policy


we use Cookies only as Session-Cookies because of the technical necessity and with us there no Cookies of Drittanbietern.

If you here on our Website click or navigate, stimmst You ours registration of Information in our Cookies on XProfan.Net To.

further Information To our Cookies and moreover, How You The control above keep, find You in ours nachfolgenden Datenschutzerklärung.


all rightDatenschutzerklärung
i want none Cookie