Sign in to follow this  
Followers 0
rexx

Drop multiple files to gui control

2 posts in this topic

#1 ·  Posted (edited)

Hi, I want to drop some files onto a gui control (a treeview), at first i use "GUISetOnEvent($GUI_EVENT_DROPPED, "OptionsDropped")"

But i can only got a single file from @GUI_DragFile

So I search the forum, got the method using WM_DROPFILES

with this I can get a list of files dropped, but I can't get the id of the control where the files dropped.

@GUI_DropID can only used on drop event.

Then I use both, but only WM_DROPFILES got the event.

I try to add "return $GUI_RUNDEFMSG" but still not working.

Any idea? Thanks.

Edited by rexx

Share this post


Link to post
Share on other sites



Hi, I want to drop some files onto a gui control (a treeview), at first i use "GUISetOnEvent($GUI_EVENT_DROPPED, "OptionsDropped")"

But i can only got a single file from @GUI_DragFile

So I search the forum, got the method using WM_DROPFILES

with this I can get a list of files dropped, but I can't get the id of the control where the files dropped.

@GUI_DropID can only used on drop event.

Then I use both, but only WM_DROPFILES got the event.

I try to add "return $GUI_RUNDEFMSG" but still not working.

Any idea? Thanks.

I found the problem.

cause i called

DllCall("shell32.dll", "int", "DragFinish", "ptr", $wParam)

before return $GUI_RUNDEFMSG

so the drop event get nothing.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0