48 references to HRGN
System.Private.Windows.Core (9)
Windows\Win32\Graphics\Gdi\GetDcScope.cs (3)
8/// <see cref="PInvokeCore.GetDCEx(HWND, HRGN, GET_DCX_FLAGS)"/>. Releases the <see cref="Gdi.HDC"/> (if any) 29/// Creates a <see cref="Gdi.HDC"/> using <see cref="PInvokeCore.GetDCEx(HWND, HRGN, GET_DCX_FLAGS)"/>. 40public GetDcScope(HWND hwnd, HRGN hrgnClip, GET_DCX_FLAGS flags)
Windows\Win32\Graphics\Gdi\RegionScope.cs (6)
23public HRGN Region { get; private set; } 38/// Creates a clipping region copy via <see cref="PInvokeCore.GetClipRgn(HDC, HRGN)"/> for the given device context. 43HRGN region = PInvokeCore.CreateRectRgn(0, 0, 0, 0); 60/// Creates a region scope with the given <see cref="HRGN"/>. 62public RegionScope(HRGN region) => Region = region; 73public static implicit operator HRGN(RegionScope regionScope) => regionScope.Region;
System.Private.Windows.GdiPlus (3)
Windows\Win32\Graphics\GdiPlus\GpRegionExtensions.cs (3)
31private static HRGN InitializeFromGdiPlus(GpRegion* region, GpGraphics* graphics) 48return HRGN.Null; 51HRGN hrgn;
System.Windows.Forms (23)
System\Windows\Forms\Application.cs (1)
707HRGN.Null,
System\Windows\Forms\Control.cs (2)
5939HRGN.Null, 5987HRGN.Null,
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
2122HRGN.Null,
System\Windows\Forms\Controls\DataGridView\DataGridView.Methods.cs (4)
5434HRGN hrgn = default; 5437hrgn = (HRGN)region.GetHrgn(graphics); 5706using GetDcScope dc = new(HWND, HRGN.Null, GET_DCX_FLAGS.DCX_CACHE | GET_DCX_FLAGS.DCX_LOCKWINDOWUPDATE); 5725using GetDcScope dc = new(HWND, HRGN.Null, GET_DCX_FLAGS.DCX_CACHE | GET_DCX_FLAGS.DCX_LOCKWINDOWUPDATE);
System\Windows\Forms\Controls\Splitter\Splitter.cs (1)
699using GetDcScope dc = new(ParentInternal.HWND, HRGN.Null, GET_DCX_FLAGS.DCX_CACHE | GET_DCX_FLAGS.DCX_LOCKWINDOWUPDATE);
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (1)
1794PInvoke.RedrawWindow(this, lprcUpdate: null, HRGN.Null, REDRAW_WINDOW_FLAGS.RDW_INVALIDATE | REDRAW_WINDOW_FLAGS.RDW_FRAME);
System\Windows\Forms\Controls\TextBox\TextBox.cs (1)
562PInvoke.RedrawWindow(this, lprcUpdate: null, HRGN.Null, REDRAW_WINDOW_FLAGS.RDW_INVALIDATE | REDRAW_WINDOW_FLAGS.RDW_FRAME);
System\Windows\Forms\Controls\ToolStrips\ToolStripDropDown.cs (1)
1988HRGN.Null,
System\Windows\Forms\Controls\ToolStrips\ToolStripTextBox.ToolStripTextBoxControl.cs (1)
234using GetDcScope hdc = new(m.HWND, HRGN.Null, GET_DCX_FLAGS.DCX_WINDOW | (GET_DCX_FLAGS)0x00010000 /* DCX_USESTYLE */);
System\Windows\Forms\Form.cs (1)
6474PInvoke.RedrawWindow(this, lprcUpdate: null, HRGN.Null, REDRAW_WINDOW_FLAGS.RDW_INVALIDATE | REDRAW_WINDOW_FLAGS.RDW_FRAME);
System\Windows\Forms\Layout\Containers\SplitContainer.cs (1)
1474using GetDcScope dc = new(HWND, HRGN.Null, GET_DCX_FLAGS.DCX_CACHE | GET_DCX_FLAGS.DCX_LOCKWINDOWUPDATE);
System\Windows\Forms\Rendering\ControlPaint.cs (3)
1799HRGN.Null, 1826HRGN.Null, 2041HRGN.Null,
System\Windows\Forms\Rendering\ScreenDcCache.cs (1)
102HRGN hrgn = PInvoke.CreateRectRgn(0, 0, 0, 0);
System\Windows\Forms\Scrolling\ScrollableControl.cs (1)
797HRGN.Null,
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (3)
456HRGN hrgn; 728HRGN.Null, 762(HRGN)hRgn,
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\DesignerFrame.cs (1)
91PInvoke.RedrawWindow(_designer, lprcUpdate: null, HRGN.Null, REDRAW_WINDOW_FLAGS.RDW_FRAME);
System\Windows\Forms\Design\DocumentDesigner.cs (1)
1082PInvoke.RedrawWindow(control, lprcUpdate: null, HRGN.Null, REDRAW_WINDOW_FLAGS.RDW_FRAME);
System\Windows\Forms\Design\FormDocumentDesigner.cs (2)
401PInvoke.RedrawWindow(control, lprcUpdate: null, HRGN.Null, REDRAW_WINDOW_FLAGS.RDW_FRAME); 413PInvoke.RedrawWindow(control, lprcUpdate: null, HRGN.Null, REDRAW_WINDOW_FLAGS.RDW_FRAME);
System.Windows.Forms.Primitives (8)
Windows\Win32\PInvoke.InvalidateRgn.cs (2)
8/// <inheritdoc cref="InvalidateRgn(HWND, HRGN, BOOL)"/> 9public static BOOL InvalidateRgn<T>(T hWnd, HRGN hrgn, BOOL erase)
Windows\Win32\PInvoke.RedrawWindow.cs (2)
8/// <inheritdoc cref="RedrawWindow(HWND, RECT*, HRGN, REDRAW_WINDOW_FLAGS)"/> 9public static unsafe BOOL RedrawWindow<T>(T hWnd, RECT* lprcUpdate, HRGN hrgnUpdate, REDRAW_WINDOW_FLAGS flags)
Windows\Win32\PInvoke.ScrollWindowEx.cs (2)
8/// <inheritdoc cref="ScrollWindowEx(HWND, int, int, RECT*, RECT*, HRGN, RECT*, SCROLL_WINDOW_FLAGS)"/> 15HRGN hrgnUpdate,
Windows\Win32\PInvoke.SetWindowRgn.cs (2)
8/// <inheritdoc cref="SetWindowRgn(HWND, HRGN, BOOL)"/> 9public static int SetWindowRgn<T>(T hwnd, HRGN hrgn, BOOL fRedraw)
System.Windows.Forms.Primitives.Tests (1)
System\Windows\Forms\DeviceContextScopeTests.cs (1)
13private static extern int GetRandomRgn(HDC hdc, HRGN hrgn, int i);