The ScrollDC function scrolls a rectangle of bits horizontally and vertically.
BOOL ScrollDC(
HDC hDC, |
// handle of 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 of 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, Windows does not compute the update rectangle. If both the hrgnUpdate and lprcUpdate parameters are NULL, Windows does not compute the update region. If hrgnUpdate is not NULL, Windows proceeds as though it contains a valid handle of 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.
InvalidateRgn, RECT, ScrollWindowEx
file: /Techref/os/win/api/win32/func/src/f75_4.htm, 5KB, , updated: 2000/4/7 12:19, local time: 2024/8/23 15:45,
18.190.153.9:LOG IN
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://piclist.com/tecHREF/os/win/api/win32/func/src/f75_4.htm"> ScrollDC</A> |
Did you find what you needed? |
![]() o List host: MIT, Site host massmind.org, Top posters @none found - Page Editors: James Newton, David Cary, and YOU! * Roman Black of Black Robotics donates from sales of Linistep stepper controller kits. * Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters. * Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated! * Contributors: Richard Seriani, Sr. |
Ashley Roll has put together a really nice little unit here. Leave off the MAX232 and keep these handy for the few times you need true RS232! |
.