rexx Posted September 2, 2009 Posted September 2, 2009 (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 September 2, 2009 by rexx
rexx Posted September 3, 2009 Author Posted September 3, 2009 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_DragFileSo I search the forum, got the method using WM_DROPFILESwith 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 calledDllCall("shell32.dll", "int", "DragFinish", "ptr", $wParam)before return $GUI_RUNDEFMSGso the drop event get nothing.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now