Exemplo n.º 1
0
            /// <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];
            }
Exemplo n.º 2
0
 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);
Exemplo n.º 3
0
 public static extern RegionType ScrollWindowEx(HWnd hwnd, int dx, int dy, IntPtr Scroll, IntPtr Clip, HRgn Update, IntPtr nullLprcUpdate, Enum.ShowWindow flags);
Exemplo n.º 4
0
 public RegionType SelectClipRegion(HRgn region)
 {
     return(Gdi.SelectClipRgn(this, region));
 }
Exemplo n.º 5
0
 public RegionResult GetClipRegion(HRgn region)
 {
     return(Gdi.GetClipRgn(this, region));
 }
Exemplo n.º 6
0
 public RegionType SelectClipRegion(HRgn region, RegionCombination operation)
 {
     return(Gdi.ExtSelectClipRgn(this, region, operation));
 }
Exemplo n.º 7
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, HRgn update, Enum.ShowWindow flags)
 {
     return(User32.ScrollWindowEx(this, dx, dy, IntPtr.Zero, IntPtr.Zero, update, IntPtr.Zero, flags));
 }
Exemplo n.º 8
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));
 }