- Code: Select all
void OnDragEnter(CefRefPtr<CefBrowser> browser, CefRefPtr<CefDragData> dragData, CefDragHandler::DragOperationsMask mask)
{
if(dragData)
{
dragData->GetFileNames(fileNames);
for(const auto& fileName : fileNames)
{
std::cout<< fileName;
}
}
}
Same piece of code prints full path in windows and in mac only file with extention is printed. We need to get the full path of the file dragged into the browser.
Any help will be appreciated