The DDX_FieldScroll function synchronizes the scroll position of a scroll bar control in a record view and an int field data member of a recordset associated with the record view (or with whatever integer variable you choose to map it to).
void AFXAPI DDX_FieldScroll( CDataExchange* pDX, int nIDC, int& value, CRecordset* pRecordset ); void AFXAPI DDX_FieldScroll( CDataExchange* pDX, int nIDC, int& value, CDaoRecordset* pRecordset );
When moving data from the recordset to the control, this function sets the scroll position of the scroll bar control to the value specified in value. On a transfer from the recordset to the control, if the recordset field is Null, the scroll bar control is set to 0. On a transfer from control to recordset, if the control is empty, the value of the recordset field is 0.
Use the first version if you are working with the ODBC-based classes. Use the second version if you are working with the DAO-based classes.
See DDX_FieldText for a general DDX_Field example. Calls to DDX_FieldScroll would be similar.