OLEDropFile example for C++ 4.0 and later

This example sets the OLEDropAutoLoad property, based on the input from the MessageBox.

void CTestDlg::OnOLEDropFileLeadctrl1(LPCTSTR pszName) 
{
   // when a file is dropped, bring up a dialog box and ask the user
   // whether to load the file or not
   m_Lead1.SetOLEDropAutoLoad(MessageBox(pszName, "Load this file?", MB_YESNO)
       == IDYES);
}