SetCurrentElement example for C++ 6.0 and later
long lCount;
m_pLEADDicomDS->EnableMethodErrors = FALSE;
//get total number of images in this Data Set
m_pLEADDicomDS->SetCurrentElement ((short)0);
lCount = m_pLEADDicomDS->GetBitmapCount();
CString szCount;
szCount.Format("%ld", lCount);
AfxMessageBox("Total: " + szCount);
//move to last image tag in the Data Set
m_pLEADDicomDS->FindLastElement (TAG_PIXEL_DATA, FALSE);
//get total number of images in this tag
lCount = m_pLEADDicomDS->GetBitmapCount();
szCount.Format("%ld", lCount);
AfxMessageBox("This Tag: " + szCount);