typedef struct DIRECTMANIPULATION_CONFIGURATION {
DWORD dwSize;
DWORD scrollLimitMask;
DWORD interactionFlags;
DWORD flags;
UINT32 inertiaEndSpeed;
FLOAT inertiaDecayRate;
FLOAT boundaryLeft;
FLOAT boundaryTop;
FLOAT boundaryRight;
FLOAT boundaryBottom;
UINT32 tickCount;
FLOAT tickMultiplier;
FLOAT zoomLimit;
FLOAT panLimit;
FLOAT pivotX;
FLOAT pivotY;
FLOAT magnificationFactor;
FLOAT minimumScale;
FLOAT maximumScale;
FLOAT inertialResistance;
FLOAT bounceDecay;
FLOAT bounceMultiplier;
FLOAT elasticity;
FLOAT friction;
FLOAT springConstant;
FLOAT springDampingRatio;
FLOAT inertiaExpansion;
FLOAT bounceRestitution;
FLOAT configureCentering;
FLOAT singleFingerPanning;
FLOAT inactiveTime;
FLOAT interactionArgumentX;
FLOAT interactionArgumentY;
FLOAT interactionArgumentPositionX;
FLOAT interactionArgumentPositionY;
UINT32 interactionMode;
UINT32 behavior;
UINT32 configurationCount;
UINT32 status;
BOOL alwaysConsumeManipulationEvents;
} DIRECTMANIPULATION_CONFIGURATION;
这个结构体包含了许多配置参数,用于定义 DirectManipulation 操作的行为,例如滚动、缩放、平移等。具体每个字段的含义需要根据上下文和使用情境进行理解,因为这些字段涵盖了很多不同的配置选项。
请注意,使用 DirectManipulation API 需要在代码中链接到 dwmapi.lib 库,并且支持的系统版本可能有所不同。确保在使用这些功能时查阅最新的 Microsoft 文档以获取详细信息。
转载请注明出处:http://www.zyzy.cn/article/detail/26807/Win32 API/Directmanipulation.h/DIRECTMANIPULATION_CONFIGURATION