Prevent from Drag an Drop files into window.

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.

Prevent from Drag an Drop files into window.

Postby jakaw » Thu Mar 21, 2013 6:45 pm

How can I disable load files, url shortcut and images, to be load when drop on window? If a drag and drop a *.url file into window or other files, it will be loaded or downloaded, I do not want this. How to disable? Thanks!
jakaw
Mentor
 
Posts: 64
Joined: Thu Mar 21, 2013 1:18 pm

Re: Prevent from Drag an Drop files into window.

Postby magreenblatt » Thu Mar 21, 2013 7:12 pm

magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: Prevent from Drag an Drop files into window.

Postby jakaw » Fri Mar 22, 2013 2:07 pm

Thanks,

Code: Select all
HWND hWndHost = g_handler->GetBrowser()->GetHost()->GetWindowHandle();
HWND hWndHostChild = GetWindow(hWndHost, GW_CHILD);
RevokeDragDrop(hWndHostChild);


Works fine!
jakaw
Mentor
 
Posts: 64
Joined: Thu Mar 21, 2013 1:18 pm


Return to Support Forum

Who is online

Users browsing this forum: No registered users and 200 guests