UpdatePanningFeedback function (uxtheme.h)

Updates clients about state of a window resulting from a panning gesture. This function can only be called after a BeginPanningFeedback call.

Syntax

BOOL UpdatePanningFeedback(
  [in] HWND hwnd,
  [in] LONG lTotalOverpanOffsetX,
  [in] LONG lTotalOverpanOffsetY,
  [in] BOOL fInInertia
);

Parameters

[in] hwnd

Type: HWND

The handle to the target window that will receive feedback. For the method to succeed, this must be the same HWND as provided in BeginPanningFeedback.

[in] lTotalOverpanOffsetX

Type: LONG

The total displacement that the window has moved in the horizontal direction since the end of scrollable region was reached. A maximum displacement of 30 pixels is allowed.

[in] lTotalOverpanOffsetY

Type: LONG

The total displacement that the window has moved in the vertical direction since the end of scrollable region was reached. A maximum displacement of 30 pixels is allowed.

[in] fInInertia

Type: BOOL

Flag indicating whether the application is handling a WM_GESTURE message with the GF_INERTIA FLAG set.

Return value

Type: BOOL

TRUE if successful.

Remarks

Incremental calls to this function should always pass the sum of the increments and not just the latest increment itself.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header uxtheme.h
DLL UxTheme.dll