MoveFirstUID Example for C++ 6.0 and later
IDicomUIDItemPtr pCurrentUID=NULL;
m_pLEADDicomDS->MoveFirstUID();
pCurrentUID = m_pLEADDicomDS->GetCurrentUID ();
//display the items information
m_Text1.SetWindowText(pCurrentUID->GetCode());
m_Text2.SetWindowText(pCurrentUID->GetName());
AfxMessageBox("wait");
m_pLEADDicomDS->MoveNextUID();
pCurrentUID = m_pLEADDicomDS->GetCurrentUID ();
//display the items information
m_Text1.SetWindowText(pCurrentUID->GetCode());
m_Text2.SetWindowText(pCurrentUID->GetName());
AfxMessageBox("wait");
m_pLEADDicomDS->MoveLastUID();
pCurrentUID = m_pLEADDicomDS->GetCurrentUID ();
//display the items information
m_Text1.SetWindowText(pCurrentUID->GetCode());
m_Text2.SetWindowText(pCurrentUID->GetName());
AfxMessageBox("wait");
m_pLEADDicomDS->MovePrevUID();
pCurrentUID = m_pLEADDicomDS->GetCurrentUID ();
//display the items information
m_Text1.SetWindowText(pCurrentUID->GetCode());
m_Text2.SetWindowText(pCurrentUID->GetName());
AfxMessageBox("wait");