The ScrollDC function scrolls a rectangle of bits horizontally and vertically.
BOOL ScrollDC(
HDC hDC, // handle to device context
int dx, // horizontal scroll units
int dy, // vertical scroll units
CONST RECT *lprcScroll,
// address of structure for scrolling rectangle
CONST RECT *lprcClip,
// address of structure for clipping rectangle
HRGN hrgnUpdate, // handle to scrolling region
LPRECT lprcUpdate
// address of structure for update rectangle
);
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
If the lprcUpdate parameter is NULL, the system does not compute the update rectangle. If both the hrgnUpdate and lprcUpdate parameters are NULL, the system does not compute the update region. If hrgnUpdate is not NULL, the system proceeds as though it contains a valid handle to the region uncovered by the scrolling process (defined by ScrollDC).
When you must scroll the entire client area of a window, use the ScrollWindowEx function.
Windows CE: Only one of the dx and dy parameters can be nonzero.
Windows NT: Requires version 3.1 or later.
Windows: Requires Windows 95 or later.
Windows CE: Requires version 1.0 or later.
Header: Declared in winuser.h.
Import Library: Use user32.lib.
Scroll Bars Overview, Scroll Bar Functions, InvalidateRgn, RECT, ScrollWindowEx