![]() |



Function |
Declared in: NiNumEditEvents.h |
Declaration
void OnValueChanged( VARIANT FAR* NewValue, VARIANT FAR* PreviousValue, BOOL OutOfRange);
Description
Generated when the value of the numeric edit control has changed.
Parameters
VARIANT FAR* NewValue
VARIANT FAR* PreviousValue
BOOL OutOfRange
Contains the new value for the control.
Note: This value should be used to construct a CNiVariant to get to the variant's data.
Contains the previous value of the numeric edit control.
Note: This parameter should be used to construct a CNiVariant to get to the variant's data.
Contains true if newValue is not within the range specified by the Minimum and Maximum properties of the numeric edit control.
See Also
Example
void OnValueChanged(VARIANT FAR* NewValue, VARIANT FAR* PreviousValue, BOOL OutOfRange) { if (OutOfRange) { *numValue = CNiVariant(m_NumEdit.Minimum); } }