Regards,
Steve
http://www.codeguru.com/cpp/controls/listview/dragdrop/article.php/c941/
// In message map
ON_WM_DROPFILES()
// In OnInitDialog()
DragAcceptFiles();
// Handler function
void CAddDataView::OnDropFiles(HDROP hDropInfo)
{
CDialog::OnDropFiles(hDropInfo);
SetForegroundWindow();
for(UINT nThisFile = 0; nThisFile < nFiles; ++nThisFile, ++nIndex) {
TCHAR szFile[_MAX_PATH];
::DragQueryFile(hDropInfo, nThisFile, szFile, _countof(szFile));
DWORD nAttrs;
if((nAttrs = ::GetFileAttributes(szFile)) !=
INVALID_FILE_ATTRIBUTES) {
// Do something with file...
}
}
ResetContent();
::DragFinish(hDropInfo);
}
Tom
"Steve" <st...@sv.sv> wrote in message
news:OhWIaZ0y...@TK2MSFTNGP03.phx.gbl...