DAD_AutoScroll function (shlobj_core.h)

[DAD_AutoScroll is available in Windows 2000 and Windows XP. It might be altered or unavailable in subsequent versions.]

Scrolls the window while an image is being dragged.

Syntax

BOOL DAD_AutoScroll(
  [in] HWND             hwnd,
  [in] AUTO_SCROLL_DATA *pad,
  [in] const POINT      *pptNow
);

Parameters

[in] hwnd

Type: HWND

A handle to the window being scrolled.

[in] pad

Type: AUTO_SCROLL_DATA*

A pointer to the AUTO_SCROLL_DATA structure.

[in] pptNow

Type: const POINT*

A pointer to the current scroll coordinates.

Return value

Type: BOOL

Returns nonzero if successful, or zero otherwise.

Remarks

The function is successful and the window scrolls only when the bFull parameter of the AUTO_SCROLL_DATA structure is TRUE. Each time this function is called, as long as bFull is FALSE, the iNextSample parameter is incremented by 1 and the current scroll coordinates and time are returned in the AUTO_SCROLL_DATA structure. When iNextSample is equal to NUM_POINTS, bFull is set to TRUE, the function succeeds, and the window scrolls.

Requirements

Requirement Value
Minimum supported client Windows 2000 Professional [desktop apps only]
Minimum supported server Windows 2000 Server [desktop apps only]
Target Platform Windows
Header shlobj_core.h (include Shlobj.h)
Library Shell32.lib
DLL Shell32.dll (version 5.00 or later)
API set ext-ms-win-shell-shell32-l1-2-1 (introduced in Windows 10, version 10.0.10240)

See also

AUTO_SCROLL_DATA