DAD_AutoScroll function

[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(
  HWND             hwnd,
  AUTO_SCROLL_DATA *pad,
  const POINT      *pptNow
);

Parameters

hwnd

Type: HWND

A handle to the window being scrolled.

pad

Type: AUTO_SCROLL_DATA*

A pointer to the AUTO_SCROLL_DATA structure.

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

   
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)

See Also

AUTO_SCROLL_DATA