void CPicToDbDlg::GetNextOrGetPre(UINT flag)
{
if (flag==1)
{
if (theApp.m_pRecordset->GetEndOfFile())
{
AfxMessageBox("这是最后一张!");
return;
}
theApp.m_pRecordset->MoveNext();
}
else if (flag==0)
{
if(theApp.m_pRecordset->GetBOF())
{
AfxMessageBox("这是第一张!");
return;
}
theApp.m_pRecordset->MovePrevious();
}
}
{
if (flag==1)
{
if (theApp.m_pRecordset->GetEndOfFile())
{
AfxMessageBox("这是最后一张!");
return;
}
theApp.m_pRecordset->MoveNext();
}
else if (flag==0)
{
if(theApp.m_pRecordset->GetBOF())
{
AfxMessageBox("这是第一张!");
return;
}
theApp.m_pRecordset->MovePrevious();
}
}