[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.
BOOL DAD_AutoScroll( HWND hwnd, AUTO_SCROLL_DATA *pad, const POINT *pptNow );
A handle to the window being scrolled.
A pointer to the AUTO_SCROLL_DATA structure.
Type: const POINT*
A pointer to the current scroll coordinates.
Returns nonzero if successful, or zero otherwise.
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.
|Minimum supported client||Windows 2000 Professional [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|
|Header||shlobj_core.h (include Shlobj.h)|
|DLL||Shell32.dll (version 5.00 or later)|