Example #1
0
 /// <summary>Scrolls the contents of a window.</summary>
 /// <param name="dx">The distance to scroll horizantally.</param>
 /// <param name="dy">The distance to scroll vertically.</param>
 /// <param name="Update">An HRgn that will be updated to represent the invalid region.</param>
 /// <param name="flags">Flags to pass to the function.</param>
 /// <returns>The type of region stored to the Update parameter.</returns>
 public RegionType ScrollWindow(int dx, int dy, out RECT update, Enum.ShowWindow flags)
 {
     return(User32.ScrollWindowEx(this, dx, dy, IntPtr.Zero, IntPtr.Zero, HRgn.Zero, out update, flags));
 }
Example #2
0
 /// <summary>Scrolls the contents of a window.</summary>
 /// <param name="dx">The distance to scroll horizantally.</param>
 /// <param name="dy">The distance to scroll vertically.</param>
 /// <param name="scroll">A rectangle that specifies the portion of the client area to be scrolled, or null.</param>
 /// <param name="clip">A clipping region for the graphic output, or null.</param>
 /// <param name="update">An HRgn that will be updated to represent the invalid region.</param>
 /// <param name="updateRect">A RECT that will be updated to represent the invalid area.</param>
 /// <param name="flags">Flags to pass to the function.</param>
 /// <returns>The type of region stored to the Update parameter.</returns>
 public RegionType ScrollWindow(int dx, int dy, ref RECT scroll, ref RECT clip, HRgn update, out RECT updateRect, Enum.ShowWindow flags)
 {
     return(User32.ScrollWindowEx(this, dx, dy, ref scroll, ref clip, update, out updateRect, flags));
 }