DDX_Slider

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

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.

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 Adding a Dialog Box in Visual C++ Tutorials and Dialog Data Exchange and Validation in Visual C++ Programmer’s Guide. For information about slider controls, see Using CSliderCtrl in Visual C++ Programmer’s Guide.

See Also   DDX_FieldSlider, DDV_MinMaxSlider