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