拖放到我的"* .exe"在资源管理器中未打开 [英] Drag and Drop to my "*.exe" unopened on explorer
问题描述
众所周知,在基于对话框的应用程序中具有拖放功能的一种简单方法是通过ON_MESSAGE消息映射处理称为WM_DROPFILES的消息以捕获被丢弃的文件.
不幸的是,当我没有打开对话框时,我不知道如何处理拖放的文件.实际上,当将图片从Microsoft拖放到绘图工具程序" mspaint.exe "时,它会自动打开删除的文件.
希望知道该怎么做,或给出一个现有的例子
谢谢!
As we all know,a simple method to have a Drag and Drop feature in our dialog based applications is to Handle the message called WM_DROPFILES through ON_MESSAGE message map to capture the dropped files.
Unfortunately,I don''t know how to process a dropped file when my dialog is not opened.In fact,When dragging and dropping a picture to the drawing tools program "mspaint.exe" from Microsofts , it automatically open the dropped file.
hope to known how to do, or give a existing examples
Thanks!
推荐答案
这与已注册文件的类型有关:尝试将图片文件拖到任何EXE上,它将启动exe.可能您需要做的只是注册文件类型 [ ^ ]
That''s all to do with registered file types: try dragging a picture file onto any EXE and it will start the exe. Probably, all you need to do is register your file type[^]
这篇关于拖放到我的"* .exe"在资源管理器中未打开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!