Help For CefDragHandler on CEF1

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Help For CefDragHandler on CEF1

Postby cmtjy11 » Fri Jan 25, 2013 7:23 am

Hello,

I'm using VS2010 build a project about CEF 1 on Windows 7 64bits.
I finally have a try on the CefDragHandler, only use to move the pics or vedios in the content,
but I found that the source of pictures will be added file:/// scheme header, after it is dragged and of course it is local picture.
why? For standard?
BTW, the DragOperationsMask in the OnDragStart is "-1" and in the OnDragEnter the mask will be "DRAG_OPERATION_COPY | DRAG_OPERATION_LINK | DRAG_OPERATION_GENERIC | DRAG_OPERATION_MOVE"
I modify these ,but it seems no work? Need your advice!

THX~
cmtjy11
Techie
 
Posts: 17
Joined: Wed Jul 04, 2012 1:02 am

Re: Help For CefDragHandler on CEF1

Postby magreenblatt » Fri Jan 25, 2013 12:35 pm

What are you dragging the files from and what are you dragging them to? Please provide an example if possible.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Help For CefDragHandler on CEF1

Postby cmtjy11 » Mon Jan 28, 2013 3:18 am

magreenblatt wrote:What are you dragging the files from and what are you dragging them to? Please provide an example if possible.


No, it maybe misled, and the picture is from content and to content.
via the frame->GetSource(),it may be explained clear.
pictrue from "<div>fsadfasdf<img src="D:/CEF/TEMP/test1.jpg" style="float:none;"></div>"
and I drag and move it right to "<div>fsadfa<img src="file:///D:/CEF/TEMP/test1.jpg" style="float:none;">sdf</div>"
three chars! but the src from img element will be changed. "file:///"is added.
so that is why I asked for help.

THX~
cmtjy11
Techie
 
Posts: 17
Joined: Wed Jul 04, 2012 1:02 am

Re: Help For CefDragHandler on CEF1

Postby magreenblatt » Mon Jan 28, 2013 9:05 am

This is expected behavior. It is not a valid URL otherwise.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 194 guests

cron