Command Handlers for Record Scrolling (MFC Data Access)
The CRecordView class provides default command handling for the following standard commands:
ID_RECORD_MOVE_FIRST
ID_RECORD_MOVE_LAST
ID_RECORD_MOVE_NEXT
ID_RECORD_MOVE_PREV
The OnMove
member function provides default command handling for all four commands, which move from record to record. As these commands are issued, RFX (or DFX) loads the new record into the recordset's fields and DDX moves the values into the record form's controls. For information about RFX, see Record Field Exchange (RFX).
Note
Be sure to use these standard command IDs for any user-interface objects associated with the standard record navigation commands.