UpdatePanningFeedback function

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(
  HWND hwnd,
  LONG lTotalOverpanOffsetX,
  LONG lTotalOverpanOffsetY,
  BOOL fInInertia
);

Parameters

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.

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.

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.

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

   
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