开发者

Can't drop files to IShellView when FWF_DESKTOP flag set

开发者 https://www.devze.com 2023-03-03 16:31 出处:网络
I implemented an IShellBrowser to host an IShellView object. And I set the FWF_DESKTOP flag when I call IShellView::CreateViewWindow. After IShellView::UIActivate, the view window its created cannot a

I implemented an IShellBrowser to host an IShellView object. And I set the FWF_DESKTOP flag when I call IShellView::CreateViewWindow. After IShellView::UIActivate, the view window its created cannot accept user drop files on it, but can drag to other explorer Window. I tried to obtain an IDropTarget via IShellFolder::CreateViewObject, and RegisterDragDrop to the view window, it works. But when I drag file from explorer to it, no dragging image displayed(it seems like old style D&D), and I also can't drag and drop items in same window. If I CreateViewWindow with FWF_NONE, 开发者_运维知识库all fine. But....why?

How can I make Drag & Drop work properly when I specify FWF_DESKTOP?


The desktop view might have some special handling, even MSDN says:

This value applies only to the desktop view and is not used for typical Shell folders.

Why do you think you need the FWF_DESKTOP flag?

0

精彩评论

暂无评论...
验证码 换一张
取 消