Getting an overlay bitmap list Example for C++ 6.0 and later
short iRet;
ILEADOverlayAttributesPtr pOverlayAttributesDS = NULL;
long GroupNumber = 0;
BOOL bIsOverlayInDataset = FALSE;
CString cs;
iRet = m_pLEADDicomDS->GetOverlayAttributes (0, 0);
if(iRet != 0)
{
AfxMessageBox("error");
return;
}
pOverlayAttributesDS = m_pLEADDicomDS->GetOverlayAttributes ();
BSTR bstr = m_pLEADDicomDS->GetOverlayActivationLayer(0);
cs = bstr;
SysFreeString(bstr);
AfxMessageBox(cs);
iRet = m_pLEADDicomDS->GetOverlayBitmapList (0, 0, pOverlayAttributesDS->NumberFramesInOverlay, 0);
if(iRet != 0)
{
AfxMessageBox("error");
return;
}
m_LEADRasterView1.GetRaster().SetBitmapList(m_pLEADDicomDS->OverlayBitmapList);
return;