BEGIN_MESSAGE_MAP(CTry01Dlg, CDialog)
//{{AFX_MSG_MAP(CTry01Dlg)
... ON_WM_DROPFILES()
//}}AFX_MSG_MAP
END_MESSAGE_MAP()
...
BOOL CTry01Dlg::OnInitDialog()
{
...
SetIcon(m_hIcon, FALSE); // Set small icon
// TODO: Add extra initialization here
// { DragAcceptFiles();
// }
return TRUE; // return TRUE unless you set the focus to a control
}
...
void CTry01Dlg::OnDropFiles(HDROP hDropInfo)
{
// TODO: Add your message handler code here and/or call default
// {
int nFiles;
char szPathName[MAX_PATH];
CString strFileName;