Command Handlers for Record Scrolling (MFC Data Access)

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Command Handlers for Record Scrolling (MFC Data Access).

Classes CRecordView and CDaoRecordView provide 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 of classes CRecordView and CDaoRecordView 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.

See Also

Supporting Navigation in a Record View