c# - Drag Drop using SendMessage -
this sounds funny..just little experiment.
wanted simulate drag drop of file on application/window using send message. possible?
i dont have code application on executable.
the application ip messenger.
what wanted use "send to" functionality send file .exe ,which will
find ipmessenger window , simulate drag drop thr code.
the user select file , right click "send to" .exe drag drop code.
**note: ip messenger supports drag-drop operation files
thx
amit
there wm_dropfiles
message. guess use createtoolhelp32snapshot
locate window ip messenger , build dropfiles
structure send wm_dropfiles
message.
the final link codeproject, on creating dropfiles
structure: how implement drag , drop between program , explorer.
instead of using creattoolhelp32snapshot
using findwindow
function. here hwnd
ip messenger directly, instead of cth32s
, locate handle
process.
when done create dropfiles
structure. read comments on codeproject link in "initiating drag , drop" section more info of how.
and send sendmessage
sendmessage(ipmesshwnd, wm_dropfiles, (hdrop)&mydropfiles, 0);
Comments
Post a Comment