Another Drag and Drop Question
-
I'm in the process of writing a 'winzip' style tool. I want to enable drag and drop so the user can drag files from my tool and drop them into win explorer. The problem is I need to extract the files before the final 'drop' can take place. I'm using COleDataSource::DoDragDrop to do the job but as it's a single function that does the drag and the drop I cannot extract the files to a temp folder before the process finishes! Basiclly, I make a list of the files the user has dragged, create 0 byte files in a temp folder to fill in the DROPFILES struct but when I drop the function simply copies the 0 byte files before I can replace them with the extracted ones! Any help would be appriciated as I've been pulling my hair out and dont have much left! :wtf: Thanks :)
-
I'm in the process of writing a 'winzip' style tool. I want to enable drag and drop so the user can drag files from my tool and drop them into win explorer. The problem is I need to extract the files before the final 'drop' can take place. I'm using COleDataSource::DoDragDrop to do the job but as it's a single function that does the drag and the drop I cannot extract the files to a temp folder before the process finishes! Basiclly, I make a list of the files the user has dragged, create 0 byte files in a temp folder to fill in the DROPFILES struct but when I drop the function simply copies the 0 byte files before I can replace them with the extracted ones! Any help would be appriciated as I've been pulling my hair out and dont have much left! :wtf: Thanks :)