?
Was mache ich da nur falsch? Ich möchte in ein Edit-Control einen
Dateipfad ablegen können (via Drag and Drop).
Das Edit1 steht auf "Dateien annehmen" und meine Funktion ist
so gefüllt:
void CdragndropDlg::OnDropFiles(HDROP hDropInfo)
{
UINT i = 0;
UINT nFiles = ::DragQueryFile(hDropInfo, (UINT) -1, NULL, 0);
for (i = 0; i < nFiles; i++)
{
TCHAR szFileName[_MAX_PATH];
::DragQueryFile(hDropInfo, i, szFileName, _MAX_PATH);
//m_editc ist mein Control
m_editc.SetWindowText(szFileName);
MessageBox(szFileName);
}
CDialog::OnDropFiles(hDropInfo);
}