IDirectManipulationAutoScrollBehavior::SetConfiguration method (directmanipulation.h)
Performs the auto-scroll animation for the viewport this behavior is attached to.
Syntax
HRESULT SetConfiguration(
[in] DIRECTMANIPULATION_MOTION_TYPES motionTypes,
[in] DIRECTMANIPULATION_AUTOSCROLL_CONFIGURATION scrollMotion
);
Parameters
[in] motionTypes
A combination of DIRECTMANIPULATION_MOTION_TRANSLATEX and DIRECTMANIPULATION_MOTION_TRANSLATEY from DIRECTMANIPULATION_MOTION_TYPES. DIRECTMANIPULATION_MOTION_NONE cannot be specified.
[in] scrollMotion
One of the values from DIRECTMANIPULATION_AUTOSCROLL_CONFIGURATION.
Return value
If the method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
SetConfiguration takes effect immediately. If the content is not in inertia, and DIRECTMANIPULATION_AUTOSCROLL_CONFIGURATION_STOP is specified for scrollMotion, then this method returns S_FALSE.
Examples
spAutoScrollBehavior->SetConfiguration(DIRECTMANIPULATION_MOTION_TRANSLATEX, DIRECTMANIPULATION_AUTOSCROLL_CONFIGURATION_FORWARD));
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8.1 [desktop apps only] |
Minimum supported server | Windows Server 2012 R2 [desktop apps only] |
Target Platform | Windows |
Header | directmanipulation.h |