OLEDropAllowed example for C++ 5.0 and later
This example toggles the OLEDropAllowed property.
if(m_LEADRasterView1.GetOleDropAllowed() == FALSE)
m_LEADRasterView1.SetOleDropAllowed(TRUE);
else
m_LEADRasterView1.SetOleDropAllowed(FALSE);