DDX_Slider

The DDX_Slider function manages the transfer of int data between a slider control in a dialog box or form view and an int data member of the dialog box or form view object.

void AFXAPI DDX_Slider( 
   CDataExchange* pDX, 
   int nIDC, 
   int& value  
);

Parameters

  • pDX
    A pointer to a CDataExchange object. The framework supplies this object to establish the context of the data exchange, including its direction.

  • nIDC
    The resource ID of the slider control.

  • value
    A reference to the value to be exchanged. This parameter holds or sets the slider control's current position.

Remarks

When DDX_Slider is called, value is set to the current position of the control's thumb, or the value receives the position, depending on the direction of the exchange.

For more information about DDX, see Dialog Data Exchange and Validation. For information about slider controls, see Using CSliderCtrl.

Requirements

Header: afxdd_.h

See Also

Reference

DDX_FieldSlider

DDV_MinMaxSlider

Concepts

MFC Macros and Globals

Other Resources

Standard Dialog Data Exchange Routines