IRangeValueProvider::SmallChange Property

Gets the value that is added to or subtracted from the IRangeValueProvider::Value property when a small change is made, such as with an arrow key.

Syntax


HRESULT IRangeValueProvider::get_SmallChange(double *pRetVal);

Parameters

pRetVal
[retval][out] The address of a variable that receives the small-change value, or NULL if the control does not support IRangeValueProvider::SmallChange. This parameter is passed uninitialized.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

The SmallChange property can support Not a Number (NaN) value. When returning a NaN value, the provider should return a quiet (non-signalling) NaN to avoid raising an exception if floating point exceptions are turned on. The following example shows how to create a quiet NaN:

ULONGLONG ulNaN = 0xFFFFFFFFFFFFFFFF;
    *pRetVal = *reinterpret_cast<double*>(&ulNaN);

Alternatively, you can use the following function from the standard C++ libraries:


numeric_limits<double>::quiet_NaN( )

See Also

UI Automation Providers Overview

Community Additions

Show: