9 references to CreatePen
System.Private.Windows.Core (2)
Windows\Win32\Graphics\Gdi\CreatePenScope.cs (2)
27
/// <see cref="PInvokeCore.
CreatePen
(PEN_STYLE, int, COLORREF)" />.
30
HPEN = PInvokeCore.
CreatePen
(PEN_STYLE.PS_SOLID, width, color);
System.Windows.Forms (3)
System\Windows\Forms\Rendering\ControlPaint.cs (3)
1833
FrameStyle.Dashed => (HGDIOBJ)PInvokeCore.
CreatePen
(PEN_STYLE.PS_DOT, cWidth: 1, (COLORREF)(uint)ColorTranslator.ToWin32(backColor)).Value,
1834
FrameStyle.Thick => (HGDIOBJ)PInvokeCore.
CreatePen
(PEN_STYLE.PS_SOLID, cWidth: 2, (COLORREF)(uint)ColorTranslator.ToWin32(backColor)).Value,
1858
using ObjectScope pen = new(PInvokeCore.
CreatePen
(PEN_STYLE.PS_SOLID, cWidth: 1, (COLORREF)(uint)ColorTranslator.ToWin32(backColor)));
System.Windows.Forms.Design (4)
System\Windows\Forms\Design\DesignerUtils.cs (4)
32
PInvokeCore.
CreatePen
(PEN_STYLE.PS_SOLID, cWidth: 1, (COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.ControlText));
34
PInvokeCore.
CreatePen
(PEN_STYLE.PS_SOLID, cWidth: 1, (COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.Window));
179
s_grabHandlePenPrimary = PInvokeCore.
CreatePen
(PEN_STYLE.PS_SOLID, cWidth: 1, (COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.ControlText));
182
s_grabHandlePen = PInvokeCore.
CreatePen
(PEN_STYLE.PS_SOLID, cWidth: 1, (COLORREF)(uint)ColorTranslator.ToWin32(SystemColors.Window));