Hi, i created this basic MFC ODBC database app and tried to override the default functionality of the "Next Record" menu item, because i wanna display a bitmap when i goto a new record. Here's what that overriden function looks like:
Code:
void CDatabaseView::OnRecordNext()
{
m_pSet->MoveNext();
LoadAvatarFromDB();
}
But after doing that, i no longer can edit entries in the db dialog. For example, when i edit an entry in a edit box and goto the next record and come back to the edited, my edited entry is lost. Say, if i change "Enya" to "Yanni", when i come back i see "Enya", not "Yanni". How to fix this? Please help.
Thx.