This function scrolls the contents of a window rectangle.
#define INCL_WINWINDOWMGR /* Or use INCL_WIN, INCL_PM, Also in COMMON section */ #include <os2.h> HWND hwnd; /* Window handle. */ LONG lDx; /* Amount of horizontal scroll to the right (in device units). */ LONG lDy; /* Amount of vertical scroll upward (in device units). */ PRECTL prclScroll; /* Scroll rectangle. */ PRECTL prclClip; /* Clip rectangle. */ HRGN hrgnUpdateRgn; /* Update region. */ PRECTL prclUpdate; /* Update rectangle. */ ULONG flOptions; /* Scroll options. */ LONG lComplexity; /* Complexity of resulting region/error indicator. */ lComplexity = WinScrollWindow(hwnd, lDx, lDy, prclScroll, prclClip, hrgnUpdateRgn, prclUpdate, flOptions);