📄 wpw_wapi_dragdrop_95.html
字号:
<HTML>
<HR><A NAME=WINAPI_DRAG_DROP>
Return to <a href="wpw_wapi_index.html#TOC">Table of Contents for this chapter</a><br>
<H4>Subject: Drag and Drop</H4><PRE>
In article <3rqat9$f6d@newsgate.dircon.co.uk>,
rmw01@dircon.co.uk (Richard M Willis) wrote:
>My application has an "import from external file" dialog. This is a
>modeless dialog with a progress bar etc.
>I would like to specify the files-to-be-imported by drag/dropping them
>from File Manager. Seems reasonable enough.
>
>What do I need to do to do this ?
>The .hlp file says to put DragAcceptFiles(HWindow,TRUE) in the
>WM_CREATE response and to put a WM_DROPFILES response in the
>window/dialog.
>
>This doesn't work. I've also tried the extended style
>WS_EX_ACCEPTFILES but this has no effect whatsoever. All I get is the
>"diagonal line and circle" cursor over the drop zone. Is there a
>fundamental reason why (my) dialogs can't receive dropped files ?
>
>Richard [in GB-HR8]
>
>
Try putting the DragAcceptFiles in the WM_INITDIALOG.
Dave
--------------------
Is my project done? Define done...
dcon@iwwpd.att.com
David.Connet@att.com
</PRE>
</HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -