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(
_In_ HWND hwnd,
_In_ AUTO_SCROLL_DATA *pad,
_In_ const POINT *pptNow
);
Parameters
- hwnd [in]
-
Type: HWND
A handle to the window being scrolled.
- pad [in]
-
Type: AUTO_SCROLL_DATA*
A pointer to the AUTO_SCROLL_DATA structure.
- pptNow [in]
-
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] |
|
Header |
|
|
Library |
|
|
DLL |
|
See also