Jump to content

Recommended Posts

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
Posted

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.

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...