示例#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];
            }
示例#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);
示例#3
0
 public static extern RegionType ScrollWindowEx(HWnd hwnd, int dx, int dy, IntPtr Scroll, IntPtr Clip, HRgn Update, IntPtr nullLprcUpdate, Enum.ShowWindow flags);
示例#4
0
文件: HDc.cs 项目: snarfblam/editroid
 public RegionType SelectClipRegion(HRgn region)
 {
     return(Gdi.SelectClipRgn(this, region));
 }
示例#5
0
文件: HDc.cs 项目: snarfblam/editroid
 public RegionResult GetClipRegion(HRgn region)
 {
     return(Gdi.GetClipRgn(this, region));
 }
示例#6
0
文件: HDc.cs 项目: snarfblam/editroid
 public RegionType SelectClipRegion(HRgn region, RegionCombination operation)
 {
     return(Gdi.ExtSelectClipRgn(this, region, operation));
 }
示例#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));
 }
示例#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));
 }