/// <summary>Creates a RegionData sized to hold data for the /// specified region, but does not obtain the actual data.</summary> /// <param name="region">The region whose data to allocate a buffer for.</param> public RegionData(HRgn region) { header = new RegionDataHeader(); int dataSize = (int)Gdi.GetRegionDataSize(region, 0, 0); dataBuffer = new byte[dataSize]; }
public static extern RegionType ScrollWindowEx(HWnd hwnd, int dx, int dy, ref RECT Scroll, ref RECT Clip, HRgn Update, out RECT lprcUpdate, Enum.ShowWindow flags);
public static extern RegionType ScrollWindowEx(HWnd hwnd, int dx, int dy, IntPtr Scroll, IntPtr Clip, HRgn Update, IntPtr nullLprcUpdate, Enum.ShowWindow flags);
public RegionType SelectClipRegion(HRgn region) { return(Gdi.SelectClipRgn(this, region)); }
public RegionResult GetClipRegion(HRgn region) { return(Gdi.GetClipRgn(this, region)); }
public RegionType SelectClipRegion(HRgn region, RegionCombination operation) { return(Gdi.ExtSelectClipRgn(this, region, operation)); }
/// <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, HRgn update, Enum.ShowWindow flags) { return(User32.ScrollWindowEx(this, dx, dy, IntPtr.Zero, IntPtr.Zero, update, IntPtr.Zero, flags)); }
/// <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)); }