Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
MFC
TRY
Expand Minimize
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

DDV_MinMaxSlider 

Call DDV_MinMaxSlider to verify that the value in the control associated with value falls between minVal and maxVal.


void AFXAPI DDV_MinMaxSlider(
   CDataExchange* pDX,
   DWORD value,
   DWORD minVal,
   DWORD maxVal 
);

Parameters

pDX

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

value

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

minVal

Minimum value allowed.

maxVal

Maximum value allowed.

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

Community Additions

ADD
Show:
© 2015 Microsoft