OnValueChanged

CNi

Function Group
OnValueChanged() Functions    Prev page: OnReadyStateChangeNext page: OnValueChanging    
Function Declared in:
NiNumEditEvents.h

'Declaration' icon -- Shortcut to top of page. Declaration

void OnValueChanged(
    VARIANT FAR* NewValue,
    VARIANT FAR* PreviousValue,
    BOOL OutOfRange);

'Description' icon -- Shortcut to top of page. Description

Generated when the value of the numeric edit control has changed.

Shortcut to top of page. Parameters

VARIANT FAR* NewValue

Contains the new value for the control.

Note: This value should be used to construct a CNiVariant to get to the variant's data.

VARIANT FAR* PreviousValue

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.

BOOL OutOfRange

Contains true if newValue is not within the range specified by the Minimum and Maximum properties of the numeric edit control.

'See Also' icon -- Shortcut to top of page. See Also

Shortcut to top of page. Example

void OnValueChanged(VARIANT FAR* NewValue, VARIANT FAR* PreviousValue, BOOL OutOfRange) {
   if (OutOfRange) {
       *numValue = CNiVariant(m_NumEdit.Minimum);
   }
}