3 instantiations of HDC
System.Private.Windows.Core (3)
_generated\103\Windows.Win32.HDC.g.cs (3)
41 public static explicit operator HDC(void* value) => new HDC(value); 57 public static explicit operator HDC(IntPtr value) => new HDC((void*)value.ToPointer()); 59 public static explicit operator HDC(UIntPtr value) => new HDC((void*)value.ToPointer());
660 references to HDC
System.Drawing.Common (68)
_generated\17\Windows.Win32.PInvoke.GDI32.dll.g.cs (9)
38 internal static extern int AbortDoc(winmdroot.Graphics.Gdi.HDC hdc); 71 internal static extern int EndDoc(winmdroot.Graphics.Gdi.HDC hdc); 84 internal static extern int EndPage(winmdroot.Graphics.Gdi.HDC hdc); 106 internal static extern int ExtEscape(winmdroot.Graphics.Gdi.HDC hdc, int iEscape, int cjInput, [Optional] winmdroot.Foundation.PCSTR lpInData, int cjOutput, [Optional] winmdroot.Foundation.PSTR lpOutData); 127 internal static extern unsafe int GetDIBits(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.HBITMAP hbm, uint start, uint cLines, [Optional] void* lpvBits, winmdroot.Graphics.Gdi.BITMAPINFO* lpbmi, winmdroot.Graphics.Gdi.DIB_USAGE usage); 142 internal static extern unsafe winmdroot.Graphics.Gdi.HDC ResetDCW(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.DEVMODEW* lpdm); 156 internal static extern unsafe int StartDoc(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Storage.Xps.DOCINFOW* lpdi); 169 internal static extern int StartPage(winmdroot.Graphics.Gdi.HDC hdc);
System\Drawing\BufferedGraphics.cs (2)
92(HDC)refTargetDC.Handle, 97(HDC)sourceDC,
System\Drawing\BufferedGraphicsContext.cs (13)
19private HDC _compatDC; 77return AllocBufferInTempManager(targetGraphics, HDC.Null, targetRectangle); 80return AllocBuffer(targetGraphics, HDC.Null, targetRectangle); 90return AllocBufferInTempManager(null, (HDC)targetDC, targetRectangle); 93return AllocBuffer(null, (HDC)targetDC, targetRectangle); 99private BufferedGraphics AllocBuffer(Graphics? targetGraphics, HDC targetDC, Rectangle targetRectangle) 121surface = CreateBuffer((HDC)destDc, targetRectangle.Width, targetRectangle.Height); 148private static BufferedGraphics AllocBufferInTempManager(Graphics? targetGraphics, HDC targetDC, Rectangle targetRectangle) 203private bool FillBitmapInfo(HDC hdc, HPALETTE hpalette, BITMAPINFO* bitmapInfo) 260private bool FillColorTable(HDC hdc, HPALETTE hpalette, BITMAPINFO* bitmapInfo) 304private Graphics CreateBuffer(HDC src, int width, int height) 352private HBITMAP CreateCompatibleDIB(HDC hdc, HPALETTE hpalette, int ulWidth, int ulHeight) 433_compatDC = HDC.Null;
System\Drawing\Font.cs (2)
590status = PInvokeGdiPlus.GdipCreateFontFromLogfont((HDC)hdc, (LOGFONTW*)lf, &font); 657Status status = PInvokeGdiPlus.GdipCreateFontFromDC((HDC)hdc, &font);
System\Drawing\Graphics.cs (14)
46private HDC _nativeHdc; 91Gdip.CheckStatus(PInvokeGdiPlus.GdipCreateFromHDC((HDC)hdc, &nativeGraphics)); 102Gdip.CheckStatus(PInvokeGdiPlus.GdipCreateFromHDC2((HDC)hdc, (HANDLE)hdevice, &nativeGraphics)); 145CheckStatus(!Gdip.Initialized ? Status.Ok : PInvokeGdiPlus.GdipReleaseDC(NativeGraphics, (HDC)hdc)); 146_nativeHdc = HDC.Null; 488HDC IHdcContext.GetHdc() => (HDC)GetHdc(); 492HDC hdc; 2743HDC targetDC = (HDC)GetHdc(); 3287(HDC hdc, int saveState) IGraphicsContextInfo.GetHdc(ApplyGraphicsProperties apply, bool alwaysSaveState) 3293HDC hdc = HDC.Null; 3314hdc = (HDC)GetHdc();
System\Drawing\Icon.cs (1)
272private void DrawIcon(HDC hdc, Rectangle imageRect, Rectangle targetRect, bool stretch)
System\Drawing\Imaging\Metafile.cs (9)
127(HDC)referenceHdc, 223(HDC)referenceHdc, 361(HDC)referenceHdc, 385(HDC)referenceHdc, 410(HDC)referenceHdc, 436(HDC)referenceHdc, 460(HDC)referenceHdc, 485(HDC)referenceHdc, 510(HDC)referenceHdc,
System\Drawing\Printing\DefaultPrintController.cs (5)
12public unsafe class StandardPrintController : PrintController, IHandle<HDC> 17HDC IHandle<HDC>.Handle => _hdc?.Handle ?? HDC.Null; 81HDC result = PInvoke.ResetDCW(_hdc, devmode);
System\Drawing\Printing\PreviewPrintController.cs (2)
58HDC hdc = _hdc ?? HDC.Null;
System\Drawing\Printing\PrinterSettings.cs (1)
341private static bool IsDirectPrintingSupported(HDC hdc, ImageFormat imageFormat, out int escapeFunction)
Windows\Win32\PInvoke.AbortDoc.cs (2)
8/// <inheritdoc cref="AbortDoc(HDC)"/> 9internal static unsafe int AbortDoc<T>(T hdc) where T : IHandle<HDC>
Windows\Win32\PInvoke.EndDoc.cs (2)
8/// <inheritdoc cref="EndDoc(HDC)"/> 9internal static unsafe int EndDoc<T>(T hdc) where T : IHandle<HDC>
Windows\Win32\PInvoke.EndPage.cs (2)
8/// <inheritdoc cref="EndPage(HDC)"/> 9internal static unsafe int EndPage<T>(T hdc) where T : IHandle<HDC>
Windows\Win32\PInvoke.StartDoc.cs (2)
8/// <inheritdoc cref="StartDoc(HDC, DOCINFOW*)"/> 9internal static unsafe int StartDoc<T>(T hdc, in DOCINFOW lpdi) where T : IHandle<HDC>
Windows\Win32\PInvoke.StartPage.cs (2)
8/// <inheritdoc cref="StartPage(HDC)"/> 9internal static unsafe int StartPage<T>(T hdc) where T : IHandle<HDC>
System.Private.Windows.Core (204)
_generated\103\Windows.Win32.HDC.g.cs (13)
25 : IEquatable<HDC> 35 internal static HDC Null => default; 39 public static implicit operator void*(HDC value) => value.Value; 41 public static explicit operator HDC(void* value) => new HDC(value); 43 public static bool operator ==(HDC left, HDC right) => left.Value == right.Value; 45 public static bool operator !=(HDC left, HDC right) => !(left == right); 47 public bool Equals(HDC other) => this.Value == other.Value; 49 public override bool Equals(object obj) => obj is HDC other && this.Equals(other); 55 public static implicit operator IntPtr(HDC value) => new IntPtr(value.Value); 57 public static explicit operator HDC(IntPtr value) => new HDC((void*)value.ToPointer()); 59 public static explicit operator HDC(UIntPtr value) => new HDC((void*)value.ToPointer());
_generated\154\Windows.Win32.IPicture.g.cs (30)
284 /// <inheritdoc cref="Render(winmdroot.Graphics.Gdi.HDC, int, int, int, int, int, int, int, int, winmdroot.Foundation.RECT*)"/> 286 internal unsafe winmdroot.Foundation.HRESULT Render(winmdroot.Graphics.Gdi.HDC hDC, int x, int y, int cx, int cy, int xSrc, int ySrc, int cxSrc, int cySrc, in winmdroot.Foundation.RECT pRcWBounds) 298 private static winmdroot.Foundation.HRESULT Render(IPicture* pThis, winmdroot.Graphics.Gdi.HDC hDC, int x, int y, int cx, int cy, int xSrc, int ySrc, int cxSrc, int cySrc, winmdroot.Foundation.RECT* pRcWBounds) 333 public unsafe winmdroot.Foundation.HRESULT Render(winmdroot.Graphics.Gdi.HDC hDC, int x, int y, int cx, int cy, int xSrc, int ySrc, int cxSrc, int cySrc, winmdroot.Foundation.RECT* pRcWBounds) 335 return ((delegate *unmanaged [Stdcall]<IPicture*,winmdroot.Graphics.Gdi.HDC ,int ,int ,int ,int ,int ,int ,int ,int ,winmdroot.Foundation.RECT* ,winmdroot.Foundation.HRESULT>)lpVtbl[8])((IPicture*)Unsafe.AsPointer(ref this), hDC, x, y, cx, cy, xSrc, ySrc, cxSrc, cySrc, pRcWBounds); 370 /// <inheritdoc cref="get_CurDC(winmdroot.Graphics.Gdi.HDC*)"/> 372 internal unsafe winmdroot.Foundation.HRESULT get_CurDC(out winmdroot.Graphics.Gdi.HDC phDC) 374 fixed (winmdroot.Graphics.Gdi.HDC* phDCLocal = &phDC) 384 private static winmdroot.Foundation.HRESULT get_CurDC(IPicture* pThis, winmdroot.Graphics.Gdi.HDC* phDC) 411 public unsafe winmdroot.Foundation.HRESULT get_CurDC(winmdroot.Graphics.Gdi.HDC* phDC) 413 return ((delegate *unmanaged [Stdcall]<IPicture*,winmdroot.Graphics.Gdi.HDC* ,winmdroot.Foundation.HRESULT>)lpVtbl[10])((IPicture*)Unsafe.AsPointer(ref this), phDC); 416 /// <inheritdoc cref="SelectPicture(winmdroot.Graphics.Gdi.HDC, winmdroot.Graphics.Gdi.HDC*, winmdroot.System.Ole.OLE_HANDLE*)"/> 418 internal unsafe winmdroot.Foundation.HRESULT SelectPicture(winmdroot.Graphics.Gdi.HDC hDCIn, out winmdroot.Graphics.Gdi.HDC phDCOut, out winmdroot.System.Ole.OLE_HANDLE phBmpOut) 422 fixed (winmdroot.Graphics.Gdi.HDC* phDCOutLocal = &phDCOut) 433 private static winmdroot.Foundation.HRESULT SelectPicture(IPicture* pThis, winmdroot.Graphics.Gdi.HDC hDCIn, winmdroot.Graphics.Gdi.HDC* phDCOut, winmdroot.System.Ole.OLE_HANDLE* phBmpOut) 458 public unsafe winmdroot.Foundation.HRESULT SelectPicture(winmdroot.Graphics.Gdi.HDC hDCIn, winmdroot.Graphics.Gdi.HDC* phDCOut, winmdroot.System.Ole.OLE_HANDLE* phBmpOut) 460 return ((delegate *unmanaged [Stdcall]<IPicture*,winmdroot.Graphics.Gdi.HDC ,winmdroot.Graphics.Gdi.HDC* ,winmdroot.System.Ole.OLE_HANDLE* ,winmdroot.Foundation.HRESULT>)lpVtbl[11])((IPicture*)Unsafe.AsPointer(ref this), hDCIn, phDCOut, phBmpOut); 700 internal delegate *unmanaged [Stdcall]<IPicture*,winmdroot.Graphics.Gdi.HDC ,int ,int ,int ,int ,int ,int ,int ,int ,winmdroot.Foundation.RECT* ,winmdroot.Foundation.HRESULT> Render_9; 704 internal delegate *unmanaged [Stdcall]<IPicture*,winmdroot.Graphics.Gdi.HDC* ,winmdroot.Foundation.HRESULT> get_CurDC_11; 706 internal delegate *unmanaged [Stdcall]<IPicture*,winmdroot.Graphics.Gdi.HDC ,winmdroot.Graphics.Gdi.HDC* ,winmdroot.System.Ole.OLE_HANDLE* ,winmdroot.Foundation.HRESULT> SelectPicture_12; 771 unsafe winmdroot.Foundation.HRESULT Render(winmdroot.Graphics.Gdi.HDC hDC, int x, int y, int cx, int cy, int xSrc, int ySrc, int cxSrc, int cySrc, winmdroot.Foundation.RECT* pRcWBounds); 777 unsafe winmdroot.Foundation.HRESULT get_CurDC(winmdroot.Graphics.Gdi.HDC* phDC); 780 unsafe winmdroot.Foundation.HRESULT SelectPicture(winmdroot.Graphics.Gdi.HDC hDCIn, winmdroot.Graphics.Gdi.HDC* phDCOut, winmdroot.System.Ole.OLE_HANDLE* phBmpOut);
_generated\182\Windows.Win32.PAINTSTRUCT.g.cs (1)
30 internal winmdroot.Graphics.Gdi.HDC hdc;
_generated\195\Windows.Win32.PInvokeCore.GDI32.dll.g.cs (65)
48 internal static winmdroot.Foundation.BOOL BitBlt(winmdroot.Graphics.Gdi.HDC hdc, int x, int y, int cx, int cy, [Optional] winmdroot.Graphics.Gdi.HDC hdcSrc, int x1, int y1, winmdroot.Graphics.Gdi.ROP_CODE rop) 56 static extern winmdroot.Foundation.BOOL LocalExternFunction(winmdroot.Graphics.Gdi.HDC hdc, int x, int y, int cx, int cy, [Optional] winmdroot.Graphics.Gdi.HDC hdcSrc, int x1, int y1, winmdroot.Graphics.Gdi.ROP_CODE rop); 81 internal static extern winmdroot.Graphics.Gdi.HENHMETAFILE CloseEnhMetaFile(winmdroot.Graphics.Gdi.HDC hdc); 147 internal static extern winmdroot.Graphics.Gdi.HBITMAP CreateCompatibleBitmap(winmdroot.Graphics.Gdi.HDC hdc, int cx, int cy); 160 internal static extern winmdroot.Graphics.Gdi.HDC CreateCompatibleDC([Optional] winmdroot.Graphics.Gdi.HDC hdc); 165 internal static unsafe winmdroot.Graphics.Gdi.HDC CreateDCW([Optional] string pwszDriver, [Optional] string pwszDevice, [Optional] string pszPort, [Optional] winmdroot.Graphics.Gdi.DEVMODEW? pdm) 174 winmdroot.Graphics.Gdi.HDC __result = PInvokeCore.CreateDCW(pwszDriverLocal, pwszDeviceLocal, pszPortLocal, pdm.HasValue ? &pdmLocal : null); 201 internal static extern unsafe winmdroot.Graphics.Gdi.HDC CreateDCW([Optional] winmdroot.Foundation.PCWSTR pwszDriver, [Optional] winmdroot.Foundation.PCWSTR pwszDevice, [Optional] winmdroot.Foundation.PCWSTR pszPort, [Optional] winmdroot.Graphics.Gdi.DEVMODEW* pdm); 203 /// <inheritdoc cref="CreateDIBSection(winmdroot.Graphics.Gdi.HDC, winmdroot.Graphics.Gdi.BITMAPINFO*, winmdroot.Graphics.Gdi.DIB_USAGE, void**, winmdroot.Foundation.HANDLE, uint)"/> 206 internal static unsafe winmdroot.Graphics.Gdi.HBITMAP CreateDIBSection([Optional] winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.BITMAPINFO* pbmi, winmdroot.Graphics.Gdi.DIB_USAGE usage, out void* ppvBits, [Optional] winmdroot.Foundation.HANDLE hSection, uint offset) 238 internal static unsafe winmdroot.Graphics.Gdi.HBITMAP CreateDIBSection([Optional] winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.BITMAPINFO* pbmi, winmdroot.Graphics.Gdi.DIB_USAGE usage, void** ppvBits, [Optional] winmdroot.Foundation.HANDLE hSection, uint offset) 246 static extern unsafe winmdroot.Graphics.Gdi.HBITMAP LocalExternFunction([Optional] winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.BITMAPINFO* pbmi, winmdroot.Graphics.Gdi.DIB_USAGE usage, void** ppvBits, [Optional] winmdroot.Foundation.HANDLE hSection, uint offset); 249 /// <inheritdoc cref="CreateEnhMetaFile(winmdroot.Graphics.Gdi.HDC, winmdroot.Foundation.PCWSTR, winmdroot.Foundation.RECT*, winmdroot.Foundation.PCWSTR)"/> 252 internal static unsafe winmdroot.Graphics.Gdi.HDC CreateEnhMetaFile([Optional] winmdroot.Graphics.Gdi.HDC hdc, [Optional] string lpFilename, [Optional] winmdroot.Foundation.RECT? lprc, [Optional] string lpDesc) 259 winmdroot.Graphics.Gdi.HDC __result = PInvokeCore.CreateEnhMetaFile(hdc, lpFilenameLocal, lprc.HasValue ? &lprcLocal : null, lpDescLocal); 279 internal static extern unsafe winmdroot.Graphics.Gdi.HDC CreateEnhMetaFile([Optional] winmdroot.Graphics.Gdi.HDC hdc, [Optional] winmdroot.Foundation.PCWSTR lpFilename, [Optional] winmdroot.Foundation.RECT* lprc, [Optional] winmdroot.Foundation.PCWSTR lpDesc); 309 internal static unsafe winmdroot.Graphics.Gdi.HDC CreateICW([Optional] string pszDriver, [Optional] string pszDevice, [Optional] string pszPort, [Optional] winmdroot.Graphics.Gdi.DEVMODEW? pdm) 318 winmdroot.Graphics.Gdi.HDC __result = PInvokeCore.CreateICW(pszDriverLocal, pszDeviceLocal, pszPortLocal, pdm.HasValue ? &pdmLocal : null); 340 internal static extern unsafe winmdroot.Graphics.Gdi.HDC CreateICW([Optional] winmdroot.Foundation.PCWSTR pszDriver, [Optional] winmdroot.Foundation.PCWSTR pszDevice, [Optional] winmdroot.Foundation.PCWSTR pszPort, [Optional] winmdroot.Graphics.Gdi.DEVMODEW* pdm); 397 internal static extern winmdroot.Foundation.BOOL DeleteDC(winmdroot.Graphics.Gdi.HDC hdc); 399 /// <inheritdoc cref="EnumEnhMetaFile(winmdroot.Graphics.Gdi.HDC, winmdroot.Graphics.Gdi.HENHMETAFILE, delegate *unmanaged[Stdcall]{global::Windows.Win32.Graphics.Gdi.HDC,global::Windows.Win32.Graphics.Gdi.HANDLETABLE*,global::Windows.Win32.Graphics.Gdi.ENHMETARECORD*,int,global::Windows.Win32.Foundation.LPARAM,int}, void*, winmdroot.Foundation.RECT*)"/> 402 internal static unsafe winmdroot.Foundation.BOOL EnumEnhMetaFile([Optional] winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.HENHMETAFILE hmf, delegate *unmanaged[Stdcall]<global::Windows.Win32.Graphics.Gdi.HDC,global::Windows.Win32.Graphics.Gdi.HANDLETABLE*,global::Windows.Win32.Graphics.Gdi.ENHMETARECORD*,int,global::Windows.Win32.Foundation.LPARAM,int> proc, [Optional] void* param3, [Optional] winmdroot.Foundation.RECT? lpRect) 423 internal static extern unsafe winmdroot.Foundation.BOOL EnumEnhMetaFile([Optional] winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.HENHMETAFILE hmf, delegate *unmanaged[Stdcall]<global::Windows.Win32.Graphics.Gdi.HDC,global::Windows.Win32.Graphics.Gdi.HANDLETABLE*,global::Windows.Win32.Graphics.Gdi.ENHMETARECORD*,int,global::Windows.Win32.Foundation.LPARAM,int> proc, [Optional] void* param3, [Optional] winmdroot.Foundation.RECT* lpRect); 435 internal static extern int GetClipRgn(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.HRGN hrgn); 449 internal static int GetDeviceCaps([Optional] winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.GET_DEVICE_CAPS_INDEX index) 455 static extern int LocalExternFunction([Optional] winmdroot.Graphics.Gdi.HDC hdc, int index); 583 /// <inheritdoc cref="GetViewportExtEx(winmdroot.Graphics.Gdi.HDC, winmdroot.Foundation.SIZE*)"/> 586 internal static unsafe winmdroot.Foundation.BOOL GetViewportExtEx(winmdroot.Graphics.Gdi.HDC hdc, out winmdroot.Foundation.SIZE lpsize) 606 internal static extern unsafe winmdroot.Foundation.BOOL GetViewportExtEx(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Foundation.SIZE* lpsize); 608 /// <inheritdoc cref="GetViewportOrgEx(winmdroot.Graphics.Gdi.HDC, global::System.Drawing.Point*)"/> 611 internal static unsafe winmdroot.Foundation.BOOL GetViewportOrgEx(winmdroot.Graphics.Gdi.HDC hdc, out global::System.Drawing.Point lppoint) 631 internal static extern unsafe winmdroot.Foundation.BOOL GetViewportOrgEx(winmdroot.Graphics.Gdi.HDC hdc, global::System.Drawing.Point* lppoint); 633 /// <inheritdoc cref="GetWindowOrgEx(winmdroot.Graphics.Gdi.HDC, global::System.Drawing.Point*)"/> 636 internal static unsafe winmdroot.Foundation.BOOL GetWindowOrgEx(winmdroot.Graphics.Gdi.HDC hdc, out global::System.Drawing.Point lppoint) 656 internal static extern unsafe winmdroot.Foundation.BOOL GetWindowOrgEx(winmdroot.Graphics.Gdi.HDC hdc, global::System.Drawing.Point* lppoint); 658 /// <inheritdoc cref="GetWorldTransform(winmdroot.Graphics.Gdi.HDC, winmdroot.Graphics.Gdi.XFORM*)"/> 661 internal static unsafe winmdroot.Foundation.BOOL GetWorldTransform(winmdroot.Graphics.Gdi.HDC hdc, out winmdroot.Graphics.Gdi.XFORM lpxf) 679 internal static extern unsafe winmdroot.Foundation.BOOL GetWorldTransform(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.XFORM* lpxf); 697 internal static extern winmdroot.Graphics.Gdi.GDI_REGION_TYPE IntersectClipRect(winmdroot.Graphics.Gdi.HDC hdc, int left, int top, int right, int bottom); 699 /// <inheritdoc cref="OffsetViewportOrgEx(winmdroot.Graphics.Gdi.HDC, int, int, global::System.Drawing.Point*)"/> 702 internal static unsafe winmdroot.Foundation.BOOL OffsetViewportOrgEx(winmdroot.Graphics.Gdi.HDC hdc, int x, int y, out global::System.Drawing.Point lppt) 711 /// <inheritdoc cref="OffsetViewportOrgEx(winmdroot.Graphics.Gdi.HDC, int, int, global::System.Drawing.Point*)"/> 713 internal static unsafe winmdroot.Foundation.BOOL OffsetViewportOrgEx(winmdroot.Graphics.Gdi.HDC hdc, int x, int y) 730 internal static extern unsafe winmdroot.Foundation.BOOL OffsetViewportOrgEx(winmdroot.Graphics.Gdi.HDC hdc, int x, int y, [Optional] global::System.Drawing.Point* lppt); 753 internal static extern uint RealizePalette(winmdroot.Graphics.Gdi.HDC hdc); 770 internal static extern winmdroot.Foundation.BOOL Rectangle(winmdroot.Graphics.Gdi.HDC hdc, int left, int top, int right, int bottom); 781 internal static extern winmdroot.Foundation.BOOL RestoreDC(winmdroot.Graphics.Gdi.HDC hdc, int nSavedDC); 794 internal static extern int SaveDC(winmdroot.Graphics.Gdi.HDC hdc); 809 internal static extern winmdroot.Graphics.Gdi.GDI_REGION_TYPE SelectClipRgn(winmdroot.Graphics.Gdi.HDC hdc, [Optional] winmdroot.Graphics.Gdi.HRGN hrgn); 828 internal static extern winmdroot.Graphics.Gdi.HGDIOBJ SelectObject(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.HGDIOBJ h); 846 internal static extern winmdroot.Graphics.Gdi.HPALETTE SelectPalette(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.HPALETTE hPal, winmdroot.Foundation.BOOL bForceBkgd); 860 internal static extern winmdroot.Foundation.COLORREF SetBkColor(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Foundation.COLORREF color); 870 internal static int SetBkMode(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.BACKGROUND_MODE mode) 876 static extern int LocalExternFunction(winmdroot.Graphics.Gdi.HDC hdc, int mode); 891 internal static extern int SetMapMode(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.HDC_MAP_MODE iMode); 902 internal static extern int SetROP2(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.R2_MODE rop2); 922 internal static extern uint SetTextAlign(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.TEXT_ALIGN_OPTIONS align); 933 internal static extern winmdroot.Foundation.COLORREF SetTextColor(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Foundation.COLORREF color);
_generated\201\Windows.Win32.PInvokeCore.USER32.dll.g.cs (14)
29 internal static unsafe winmdroot.Graphics.Gdi.HDC BeginPaint(winmdroot.Foundation.HWND hWnd, out winmdroot.Graphics.Gdi.PAINTSTRUCT lpPaint) 33 winmdroot.Graphics.Gdi.HDC __result = PInvokeCore.BeginPaint(hWnd, lpPaintLocal); 50 internal static extern unsafe winmdroot.Graphics.Gdi.HDC BeginPaint(winmdroot.Foundation.HWND hWnd, winmdroot.Graphics.Gdi.PAINTSTRUCT* lpPaint); 217 internal static winmdroot.Foundation.BOOL DrawIconEx(winmdroot.Graphics.Gdi.HDC hdc, int xLeft, int yTop, winmdroot.UI.WindowsAndMessaging.HICON hIcon, int cxWidth, int cyWidth, uint istepIfAniCur, [Optional] winmdroot.Graphics.Gdi.HBRUSH hbrFlickerFreeDraw, winmdroot.UI.WindowsAndMessaging.DI_FLAGS diFlags) 225 static extern winmdroot.Foundation.BOOL LocalExternFunction(winmdroot.Graphics.Gdi.HDC hdc, int xLeft, int yTop, winmdroot.UI.WindowsAndMessaging.HICON hIcon, int cxWidth, int cyWidth, uint istepIfAniCur, [Optional] winmdroot.Graphics.Gdi.HBRUSH hbrFlickerFreeDraw, winmdroot.UI.WindowsAndMessaging.DI_FLAGS diFlags); 276 /// <inheritdoc cref="EnumDisplayMonitors(winmdroot.Graphics.Gdi.HDC, winmdroot.Foundation.RECT*, delegate *unmanaged[Stdcall]{global::Windows.Win32.Graphics.Gdi.HMONITOR,global::Windows.Win32.Graphics.Gdi.HDC,global::Windows.Win32.Foundation.RECT*,global::Windows.Win32.Foundation.LPARAM,global::Windows.Win32.Foundation.BOOL}, winmdroot.Foundation.LPARAM)"/> 279 internal static unsafe winmdroot.Foundation.BOOL EnumDisplayMonitors([Optional] winmdroot.Graphics.Gdi.HDC hdc, [Optional] winmdroot.Foundation.RECT? lprcClip, delegate *unmanaged[Stdcall]<global::Windows.Win32.Graphics.Gdi.HMONITOR,global::Windows.Win32.Graphics.Gdi.HDC,global::Windows.Win32.Foundation.RECT*,global::Windows.Win32.Foundation.LPARAM,global::Windows.Win32.Foundation.BOOL> lpfnEnum, winmdroot.Foundation.LPARAM dwData) 307 internal static extern unsafe winmdroot.Foundation.BOOL EnumDisplayMonitors([Optional] winmdroot.Graphics.Gdi.HDC hdc, [Optional] winmdroot.Foundation.RECT* lprcClip, delegate *unmanaged[Stdcall]<global::Windows.Win32.Graphics.Gdi.HMONITOR,global::Windows.Win32.Graphics.Gdi.HDC,global::Windows.Win32.Foundation.RECT*,global::Windows.Win32.Foundation.LPARAM,global::Windows.Win32.Foundation.BOOL> lpfnEnum, winmdroot.Foundation.LPARAM dwData); 451 internal static extern winmdroot.Graphics.Gdi.HDC GetDC([Optional] winmdroot.Foundation.HWND hWnd); 466 internal static extern winmdroot.Graphics.Gdi.HDC GetDCEx([Optional] winmdroot.Foundation.HWND hWnd, [Optional] winmdroot.Graphics.Gdi.HRGN hrgnClip, winmdroot.Graphics.Gdi.GET_DCX_FLAGS flags); 1039 internal static extern int ReleaseDC([Optional] winmdroot.Foundation.HWND hWnd, winmdroot.Graphics.Gdi.HDC hDC); 1163 internal static extern winmdroot.Foundation.HWND WindowFromDC(winmdroot.Graphics.Gdi.HDC hDC);
_generated\253\Windows.Win32.System_Ole_IPicture_Extensions.g.cs (10)
73 /// <inheritdoc cref="winmdroot.System.Ole.IPicture.Interface.Render(winmdroot.Graphics.Gdi.HDC, int, int, int, int, int, int, int, int, winmdroot.Foundation.RECT*)"/> 74 internal static unsafe winmdroot.Foundation.HRESULT Render(this winmdroot.System.Ole.IPicture.Interface @this, winmdroot.Graphics.Gdi.HDC hDC, int x, int y, int cx, int cy, int xSrc, int ySrc, int cxSrc, int cySrc, in winmdroot.Foundation.RECT pRcWBounds) 83 /// <inheritdoc cref="winmdroot.System.Ole.IPicture.Interface.get_CurDC(winmdroot.Graphics.Gdi.HDC*)"/> 84 internal static unsafe winmdroot.Foundation.HRESULT get_CurDC(this winmdroot.System.Ole.IPicture.Interface @this, out winmdroot.Graphics.Gdi.HDC phDC) 86 fixed (winmdroot.Graphics.Gdi.HDC* phDCLocal = &phDC) 93 /// <inheritdoc cref="winmdroot.System.Ole.IPicture.Interface.SelectPicture(winmdroot.Graphics.Gdi.HDC, winmdroot.Graphics.Gdi.HDC*, winmdroot.System.Ole.OLE_HANDLE*)"/> 94 internal static unsafe winmdroot.Foundation.HRESULT SelectPicture(this winmdroot.System.Ole.IPicture.Interface @this, winmdroot.Graphics.Gdi.HDC hDCIn, out winmdroot.Graphics.Gdi.HDC phDCOut, out winmdroot.System.Ole.OLE_HANDLE phBmpOut) 98 fixed (winmdroot.Graphics.Gdi.HDC* phDCOutLocal = &phDCOut)
System\ArgumentValidation.cs (1)
53internal static void ThrowIfNull(HDC argument, [CallerArgumentExpression(nameof(argument))] string? paramName = null)
Windows\Win32\Foundation\WPARAM.cs (3)
16public static explicit operator HDC(WPARAM value) => (HDC)(nint)value.Value; 17public static explicit operator WPARAM(HDC value) => new((nuint)value.Value);
Windows\Win32\Graphics\Gdi\BeginPaintScope.cs (2)
25public HDC HDC { get; } 35public static implicit operator HDC(in BeginPaintScope scope) => scope.HDC;
Windows\Win32\Graphics\Gdi\CreateBitmapScope.cs (3)
31/// Creates a bitmap compatible with the given <see cref="HDC"/> via 32/// <see cref="PInvokeCore.CreateCompatibleBitmap(HDC, int, int)"/> 34public CreateBitmapScope(HDC hdc, int cx, int cy) => HBITMAP = PInvokeCore.CreateCompatibleBitmap(hdc, cx, cy);
Windows\Win32\Graphics\Gdi\CreateDcScope.cs (4)
22public HDC HDC { get; } 25/// Creates a compatible HDC for <paramref name="hdc"/> using <see cref="PInvokeCore.CreateCompatibleDC(HDC)"/>. 32public CreateDcScope(HDC hdc) 52public static implicit operator HDC(in CreateDcScope scope) => scope.HDC;
Windows\Win32\Graphics\Gdi\GetDcScope.cs (5)
7/// Helper to scope lifetime of an <see cref="Gdi.HDC"/> retrieved via <see cref="PInvokeCore.GetDC(HWND)"/> and 8/// <see cref="PInvokeCore.GetDCEx(HWND, HRGN, GET_DCX_FLAGS)"/>. Releases the <see cref="Gdi.HDC"/> (if any) 19public HDC HDC { get; } 29/// Creates a <see cref="Gdi.HDC"/> using <see cref="PInvokeCore.GetDCEx(HWND, HRGN, GET_DCX_FLAGS)"/>. 60public static implicit operator HDC(in GetDcScope scope) => scope.HDC;
Windows\Win32\Graphics\Gdi\HDC.cs (4)
9internal readonly partial struct HDC : IHandle<HDC> 11HDC IHandle<HDC>.Handle => this; 12object? IHandle<HDC>.Wrapper => null;
Windows\Win32\Graphics\Gdi\HdcHandle.cs (4)
7/// Used when you must keep a handle to an <see cref="HDC"/> in a field. Avoid keeping HDC handles in fields 10internal sealed class HdcHandle : IDisposable, IHandle<HDC> 24public HDC Handle { get; private set; } 28public static implicit operator HDC(in HdcHandle handle) => handle.Handle;
Windows\Win32\Graphics\Gdi\HGDIOBJ.cs (1)
8public static implicit operator HGDIOBJ(HDC value) => (HGDIOBJ)value.Value;
Windows\Win32\Graphics\Gdi\IHDCContext.cs (1)
8HDC GetHdc();
Windows\Win32\Graphics\Gdi\RegionScope.cs (2)
38/// Creates a clipping region copy via <see cref="PInvokeCore.GetClipRgn(HDC, HRGN)"/> for the given device context. 41public RegionScope(HDC hdc)
Windows\Win32\Graphics\Gdi\SaveDcScope.cs (3)
25public HDC HDC { get; } 29/// Saves the device context state using <see cref="PInvokeCore.SaveDC(HDC)"/>. 32public SaveDcScope(HDC hdc)
Windows\Win32\Graphics\Gdi\SelectObjectScope.cs (5)
7/// Helper to scope selecting a GDI object into an <see cref="HDC"/>. Restores the original 8/// object into the <see cref="HDC"/> when disposed. 22private readonly HDC _hdc; 27/// <see cref="PInvokeCore.SelectObject(HDC, HGDIOBJ)"/>. 29public SelectObjectScope(HDC hdc, HGDIOBJ @object)
Windows\Win32\Graphics\Gdi\SelectPaletteScope.cs (2)
21public HDC HDC { get; } 24public SelectPaletteScope(HDC hdc, HPALETTE hpalette, bool forceBackground, bool realizePalette)
Windows\Win32\Graphics\Gdi\SetBackgroundColorScope.cs (3)
19private readonly HDC _hdc; 23/// <see cref="PInvokeCore.SetBkColor(HDC, COLORREF)"/>. 25public SetBackgroundColorScope(HDC hdc, COLORREF color)
Windows\Win32\Graphics\Gdi\SetBkModeScope.cs (2)
23private readonly HDC _hdc; 28public SetBkModeScope(HDC hdc, BACKGROUND_MODE bkmode)
Windows\Win32\Graphics\Gdi\SetMapModeScope.cs (3)
23private readonly HDC _hdc; 27/// <see cref="PInvokeCore.SetMapMode(HDC, HDC_MAP_MODE)"/>. 29public SetMapModeScope(HDC hdc, HDC_MAP_MODE mapMode)
Windows\Win32\Graphics\Gdi\SetRop2Scope.cs (3)
23private readonly HDC _hdc; 26/// Selects <paramref name="rop2"/> into the given <paramref name="hdc"/> using <see cref="PInvokeCore.SetROP2(HDC, R2_MODE)"/>. 28public SetRop2Scope(HDC hdc, R2_MODE rop2)
Windows\Win32\Graphics\Gdi\SetTextAlignmentScope.cs (3)
23private readonly HDC _hdc; 27/// using <see cref="PInvokeCore.SetTextAlign(HDC, TEXT_ALIGN_OPTIONS)"/>. 29public SetTextAlignmentScope(HDC hdc, TEXT_ALIGN_OPTIONS ta)
Windows\Win32\Graphics\Gdi\SetTextColorScope.cs (3)
23private readonly HDC _hdc; 27/// <see cref="PInvokeCore.SetTextColor(HDC, COLORREF)"/>. 29public SetTextColorScope(HDC hdc, COLORREF color)
Windows\Win32\PInvokeCore.BitBlt.cs (8)
8/// <inheritdoc cref="BitBlt(HDC, int, int, int, int, HDC, int, int, ROP_CODE)"/> 15HDC hdcSrc, 18ROP_CODE rop) where T : IHandle<HDC> 34/// <inheritdoc cref="BitBlt(HDC, int, int, int, int, HDC, int, int, ROP_CODE)"/> 36HDC hdc, 44ROP_CODE rop) where T : IHandle<HDC>
Windows\Win32\PInvokeCore.DrawIcon.cs (1)
8public static BOOL DrawIcon<T>(HDC hDC, int x, int y, T hIcon)
Windows\Win32\PInvokeCore.DrawIconEx.cs (2)
8/// <inheritdoc cref="DrawIconEx(HDC, int, int, HICON, int, int, uint, HBRUSH, DI_FLAGS)"/> 10HDC hDC,
Windows\Win32\PInvokeCore.EnumDisplayMonitors.cs (2)
8public delegate bool EnumDisplayMonitorsCallback(HMONITOR monitor, HDC hdc); 37private static BOOL HandleEnumDisplayMonitorsNativeCallback(HMONITOR monitor, HDC hdc, RECT* lprcMonitor, LPARAM lParam)
Windows\Win32\UI\Controls\Dialogs\PRINTDLGEXW.cs (1)
117public HDC hDC;
System.Private.Windows.GdiPlus (37)
_generated\60\Windows.Win32.PInvokeGdiPlus.gdiplus.dll.g.cs (28)
1131 /// <inheritdoc cref="GdipCreateFontFromDC(winmdroot.Graphics.Gdi.HDC, winmdroot.Graphics.GdiPlus.GpFont**)"/> 1133 internal static unsafe winmdroot.Graphics.GdiPlus.Status GdipCreateFontFromDC(winmdroot.Graphics.Gdi.HDC hdc, ref winmdroot.Graphics.GdiPlus.GpFont* font) 1143 internal static extern unsafe winmdroot.Graphics.GdiPlus.Status GdipCreateFontFromDC(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.GdiPlus.GpFont** font); 1145 /// <inheritdoc cref="GdipCreateFontFromLogfont(winmdroot.Graphics.Gdi.HDC, winmdroot.Graphics.Gdi.LOGFONTW*, winmdroot.Graphics.GdiPlus.GpFont**)"/> 1147 internal static unsafe winmdroot.Graphics.GdiPlus.Status GdipCreateFontFromLogfont(winmdroot.Graphics.Gdi.HDC hdc, in winmdroot.Graphics.Gdi.LOGFONTW logfont, ref winmdroot.Graphics.GdiPlus.GpFont* font) 1160 internal static extern unsafe winmdroot.Graphics.GdiPlus.Status GdipCreateFontFromLogfont(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.LOGFONTW* logfont, winmdroot.Graphics.GdiPlus.GpFont** font); 1162 /// <inheritdoc cref="GdipCreateFromHDC(winmdroot.Graphics.Gdi.HDC, winmdroot.Graphics.GdiPlus.GpGraphics**)"/> 1164 internal static unsafe winmdroot.Graphics.GdiPlus.Status GdipCreateFromHDC(winmdroot.Graphics.Gdi.HDC hdc, ref winmdroot.Graphics.GdiPlus.GpGraphics* graphics) 1174 internal static extern unsafe winmdroot.Graphics.GdiPlus.Status GdipCreateFromHDC(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.GdiPlus.GpGraphics** graphics); 1176 /// <inheritdoc cref="GdipCreateFromHDC2(winmdroot.Graphics.Gdi.HDC, winmdroot.Foundation.HANDLE, winmdroot.Graphics.GdiPlus.GpGraphics**)"/> 1178 internal static unsafe winmdroot.Graphics.GdiPlus.Status GdipCreateFromHDC2(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Foundation.HANDLE hDevice, ref winmdroot.Graphics.GdiPlus.GpGraphics* graphics) 1188 internal static extern unsafe winmdroot.Graphics.GdiPlus.Status GdipCreateFromHDC2(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Foundation.HANDLE hDevice, winmdroot.Graphics.GdiPlus.GpGraphics** graphics); 3489 /// <inheritdoc cref="GdipGetDC(winmdroot.Graphics.GdiPlus.GpGraphics*, winmdroot.Graphics.Gdi.HDC*)"/> 3491 internal static unsafe winmdroot.Graphics.GdiPlus.Status GdipGetDC(ref winmdroot.Graphics.GdiPlus.GpGraphics graphics, ref winmdroot.Graphics.Gdi.HDC hdc) 3493 fixed (winmdroot.Graphics.Gdi.HDC* hdcLocal = &hdc) 3504 internal static extern unsafe winmdroot.Graphics.GdiPlus.Status GdipGetDC(winmdroot.Graphics.GdiPlus.GpGraphics* graphics, winmdroot.Graphics.Gdi.HDC* hdc); 6757 /// <inheritdoc cref="GdipRecordMetafile(winmdroot.Graphics.Gdi.HDC, winmdroot.Graphics.GdiPlus.EmfType, winmdroot.Graphics.GdiPlus.RectF*, winmdroot.Graphics.GdiPlus.MetafileFrameUnit, winmdroot.Foundation.PCWSTR, winmdroot.Graphics.GdiPlus.GpMetafile**)"/> 6759 internal static unsafe winmdroot.Graphics.GdiPlus.Status GdipRecordMetafile(winmdroot.Graphics.Gdi.HDC referenceHdc, winmdroot.Graphics.GdiPlus.EmfType type, in winmdroot.Graphics.GdiPlus.RectF frameRect, winmdroot.Graphics.GdiPlus.MetafileFrameUnit frameUnit, string description, ref winmdroot.Graphics.GdiPlus.GpMetafile* metafile) 6775 internal static extern unsafe winmdroot.Graphics.GdiPlus.Status GdipRecordMetafile(winmdroot.Graphics.Gdi.HDC referenceHdc, winmdroot.Graphics.GdiPlus.EmfType type, winmdroot.Graphics.GdiPlus.RectF* frameRect, winmdroot.Graphics.GdiPlus.MetafileFrameUnit frameUnit, winmdroot.Foundation.PCWSTR description, winmdroot.Graphics.GdiPlus.GpMetafile** metafile); 6777 /// <inheritdoc cref="GdipRecordMetafileFileName(winmdroot.Foundation.PCWSTR, winmdroot.Graphics.Gdi.HDC, winmdroot.Graphics.GdiPlus.EmfType, winmdroot.Graphics.GdiPlus.RectF*, winmdroot.Graphics.GdiPlus.MetafileFrameUnit, winmdroot.Foundation.PCWSTR, winmdroot.Graphics.GdiPlus.GpMetafile**)"/> 6779 internal static unsafe winmdroot.Graphics.GdiPlus.Status GdipRecordMetafileFileName(string fileName, winmdroot.Graphics.Gdi.HDC referenceHdc, winmdroot.Graphics.GdiPlus.EmfType type, in winmdroot.Graphics.GdiPlus.RectF frameRect, winmdroot.Graphics.GdiPlus.MetafileFrameUnit frameUnit, string description, ref winmdroot.Graphics.GdiPlus.GpMetafile* metafile) 6798 internal static extern unsafe winmdroot.Graphics.GdiPlus.Status GdipRecordMetafileFileName(winmdroot.Foundation.PCWSTR fileName, winmdroot.Graphics.Gdi.HDC referenceHdc, winmdroot.Graphics.GdiPlus.EmfType type, winmdroot.Graphics.GdiPlus.RectF* frameRect, winmdroot.Graphics.GdiPlus.MetafileFrameUnit frameUnit, winmdroot.Foundation.PCWSTR description, winmdroot.Graphics.GdiPlus.GpMetafile** metafile); 6800 /// <inheritdoc cref="GdipRecordMetafileStream(winmdroot.System.Com.IStream*, winmdroot.Graphics.Gdi.HDC, winmdroot.Graphics.GdiPlus.EmfType, winmdroot.Graphics.GdiPlus.RectF*, winmdroot.Graphics.GdiPlus.MetafileFrameUnit, winmdroot.Foundation.PCWSTR, winmdroot.Graphics.GdiPlus.GpMetafile**)"/> 6802 internal static unsafe winmdroot.Graphics.GdiPlus.Status GdipRecordMetafileStream(winmdroot.System.Com.IStream* stream, winmdroot.Graphics.Gdi.HDC referenceHdc, winmdroot.Graphics.GdiPlus.EmfType type, in winmdroot.Graphics.GdiPlus.RectF frameRect, winmdroot.Graphics.GdiPlus.MetafileFrameUnit frameUnit, string description, ref winmdroot.Graphics.GdiPlus.GpMetafile* metafile) 6818 internal static extern unsafe winmdroot.Graphics.GdiPlus.Status GdipRecordMetafileStream(winmdroot.System.Com.IStream* stream, winmdroot.Graphics.Gdi.HDC referenceHdc, winmdroot.Graphics.GdiPlus.EmfType type, winmdroot.Graphics.GdiPlus.RectF* frameRect, winmdroot.Graphics.GdiPlus.MetafileFrameUnit frameUnit, winmdroot.Foundation.PCWSTR description, winmdroot.Graphics.GdiPlus.GpMetafile** metafile); 6820 /// <inheritdoc cref="GdipReleaseDC(winmdroot.Graphics.GdiPlus.GpGraphics*, winmdroot.Graphics.Gdi.HDC)"/> 6822 internal static unsafe winmdroot.Graphics.GdiPlus.Status GdipReleaseDC(ref winmdroot.Graphics.GdiPlus.GpGraphics graphics, winmdroot.Graphics.Gdi.HDC hdc) 6832 internal static extern unsafe winmdroot.Graphics.GdiPlus.Status GdipReleaseDC(winmdroot.Graphics.GdiPlus.GpGraphics* graphics, winmdroot.Graphics.Gdi.HDC hdc);
System\Drawing\ApplyGraphicsProperties.cs (1)
9/// Enumeration defining the different Graphics properties to apply to an <see cref="HDC"/> when creating it
System\Drawing\IGraphicsContextInfo.cs (1)
10(HDC hdc, int saveState) GetHdc(ApplyGraphicsProperties apply, bool alwaysSaveState);
Windows\Win32\Graphics\Gdi\DeviceContextHdcScope.cs (4)
30public HDC HDC { get; } 39/// When a <see cref="T:System.Drawing.Graphics"/> object is created from a <see cref="Gdi.HDC"/> the clipping region and 40/// the viewport origin are applied (<see cref="PInvokeCore.GetViewportExtEx(HDC, SIZE*)"/>). The clipping 153public static implicit operator HDC(in DeviceContextHdcScope scope) => scope.HDC;
Windows\Win32\Graphics\Gdi\HdcExtensions.cs (1)
20where T : IHandle<HDC>
Windows\Win32\Graphics\Gdi\IGraphicsHdcProvider.cs (2)
27/// Gets the <see cref="HDC"/>, if the object was created from one. 29HDC GetHdc();
System.Windows.Forms (130)
System\Windows\Forms\ActiveX\AxHost.cs (1)
3054internal override HBRUSH InitializeDCForWmCtlColor(HDC dc, MessageId msg)
System\Windows\Forms\ActiveX\Control.ActiveXImpl.cs (4)
406/// <inheritdoc cref="IViewObject.Interface.Draw(DVASPECT, int, void*, DVTARGETDEVICE*, HDC, HDC, RECTL*, RECTL*, nint, nuint)"/> 412HDC hdcTargetDev, 413HDC hdcDraw,
System\Windows\Forms\ActiveX\Control_ActiveXControlInterfaces.cs (12)
513/// <inheritdoc cref="IViewObject.Draw(DVASPECT, int, void*, DVTARGETDEVICE*, HDC, HDC, RECTL*, RECTL*, nint, nuint)"/> 519HDC hdcTargetDev, 520HDC hdcDraw, 543/// <inheritdoc cref="IViewObject.GetColorSet(DVASPECT, int, void*, DVTARGETDEVICE*, HDC, LOGPALETTE**)"/> 549HDC hicTargetDev, 569/// <inheritdoc cref="IViewObject.Draw(DVASPECT, int, void*, DVTARGETDEVICE*, HDC, HDC, RECTL*, RECTL*, nint, nuint)"/> 575HDC hdcTargetDev, 576HDC hdcDraw, 593/// <inheritdoc cref="IViewObject.GetColorSet(DVASPECT, int, void*, DVTARGETDEVICE*, HDC, LOGPALETTE**)"/> 599HDC hdcTargetDev,
System\Windows\Forms\Control.cs (11)
5866internal virtual HBRUSH InitializeDCForWmCtlColor(HDC dc, MessageId msg) 8787private unsafe void PrintToMetaFile(HDC hDC, IntPtr lParam) 8820private protected virtual void PrintToMetaFileRecursive(HDC hDC, IntPtr lParam, Rectangle bounds) 8853private void PrintToMetaFile_SendPrintMessage(HDC hDC, nint lParam) 11247m.ResultInternal = (LRESULT)(nint)control.InitializeDCForWmCtlColor((HDC)(nint)m.WParamInternal, m.MsgInternal); 11275HDC dc = (HDC)(nint)m.WParamInternal; 11840HDC dc = (HDC)(nint)m.WParamInternal; 11952HDC hdc = (HDC)(nint)m.WParamInternal;
System\Windows\Forms\Control.MetafileDCWrapper.cs (5)
25private readonly HDC _hMetafileDC; 28internal unsafe MetafileDCWrapper(HDC hOriginalDC, Size size) 83internal HDC HDC { get; private set; } 86private unsafe bool DICopy(HDC hdcDest, HDC hdcSrc, RECT rect, bool bStretch)
System\Windows\Forms\Control.PrintPaintEventArgs.cs (1)
14internal PrintPaintEventArgs(Message m, HDC dc, Rectangle clipRect)
System\Windows\Forms\Controls\Buttons\ButtonInternal\CheckBoxBaseAdapter.cs (1)
213internal static Rectangle DrawPopupBorder(HDC hdc, Rectangle r, ColorData colors)
System\Windows\Forms\Controls\Buttons\ButtonInternal\RadioButtonBaseAdapter.cs (1)
97private static void DrawAndFillEllipse(HDC hdc, HPEN borderPen, HBRUSH fieldBrush, Rectangle bounds)
System\Windows\Forms\Controls\Buttons\CheckBoxRenderer.cs (1)
243internal static Size GetGlyphSize(HDC hdc, CheckBoxState state, HWND hwnd)
System\Windows\Forms\Controls\Buttons\RadioButtonRenderer.cs (2)
54HDC hdc, 257internal static Size GetGlyphSize(HDC hdc, RadioButtonState state, HWND hwnd)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (11)
1988internal override HBRUSH InitializeDCForWmCtlColor(HDC dc, MessageId msg) 3438HDC hdc = (HDC)m.WParamInternal; 3669(HDC)m.WParamInternal, 3673(HDC)m.WParamInternal, 3687(HDC)m.WParamInternal, 3691(HDC)m.WParamInternal, 3703m.ResultInternal = (LRESULT)(nint)InitializeDCForWmCtlColor((HDC)(nint)m.WParamInternal, m.MsgInternal); 3776HDC dc = useBeginPaint ? paintScope! : (HDC)m.WParamInternal; 3833using Graphics g = Graphics.FromHdcInternal((HDC)m.WParamInternal);
System\Windows\Forms\Controls\ComboBox\ComboBoxRenderer.cs (1)
115internal static void DrawDropDownButtonForHandle(HDC hdc, Rectangle bounds, ComboBoxState state, HWND hwnd)
System\Windows\Forms\Controls\GroupBox\GroupBox.cs (2)
667using Graphics graphics = Graphics.FromHdcInternal((HDC)m.WParamInternal); 674PInvoke.FillRect((HDC)m.WParamInternal, rect, hbrush);
System\Windows\Forms\Controls\ImageList\ImageList.cs (6)
528HDC dc = (HDC)g.GetHdc(); 534new HandleRef<HDC>(g, dc), 664HDC dc = (HDC)graphics.GetHdc(); 670new HandleRef<HDC>(graphics, dc),
System\Windows\Forms\Controls\Labels\Label.cs (1)
1349private protected override void PrintToMetaFileRecursive(HDC hDC, IntPtr lParam, Rectangle bounds)
System\Windows\Forms\Controls\ListBoxes\ListBox.cs (1)
2324using Graphics g = Graphics.FromHdc((HDC)m.WParamInternal);
System\Windows\Forms\Controls\ListView\ListView.cs (1)
6959using Graphics g = Graphics.FromHdc((HDC)m.WParamInternal);
System\Windows\Forms\Controls\TextBox\MaskedTextBox.cs (1)
2889using Graphics g = Graphics.FromHdc((HDC)m.WParamInternal);
System\Windows\Forms\Controls\TextBox\TextBox.cs (2)
806using Graphics g = Graphics.FromHdc((HDC)m.WParamInternal); 847private void DrawPlaceholderText(HDC hdc)
System\Windows\Forms\Controls\TextBox\TextBoxBase.cs (1)
1995internal override HBRUSH InitializeDCForWmCtlColor(HDC dc, MessageId msg)
System\Windows\Forms\Controls\ToolStrips\CachedItemHdcInfo.cs (5)
8internal class CachedItemHdcInfo : IDisposable, IHandle<HDC> 14private HDC _cachedItemHDC; 18public HDC Handle => _cachedItemHDC; 22public HDC GetCachedItemDC(HDC toolStripHDC, Size bitmapSize)
System\Windows\Forms\Controls\ToolStrips\ToolStrip.cs (2)
2643private protected override void PrintToMetaFileRecursive(HDC hDC, IntPtr lParam, Rectangle bounds) 3486HDC itemHDC = ItemHdcInfo.GetCachedItemDC(toolStripHDC, bitmapSize);
System\Windows\Forms\Controls\TreeView\TreeView.cs (1)
3137using Graphics g = Graphics.FromHdc((HDC)m.WParamInternal);
System\Windows\Forms\Design\ComponentEditorForm.PageSelector.cs (2)
89HDC dc, 260private void FillRectDither(HDC dc, RECT rc)
System\Windows\Forms\ErrorProvider\ErrorProvider.ErrorWindow.cs (1)
161private unsafe void MirrorDcIfNeeded(HDC hdc)
System\Windows\Forms\Input\Cursor.cs (1)
336(HDC)dc,
System\Windows\Forms\Panels\Panel.cs (1)
224private protected override void PrintToMetaFileRecursive(HDC hDC, IntPtr lParam, Rectangle bounds)
System\Windows\Forms\Rendering\ControlPaint.cs (1)
2054HDC dc,
System\Windows\Forms\Rendering\DCMapping.cs (2)
26private readonly HDC _hdc; 29public unsafe DCMapping(HDC hdc, Rectangle bounds)
System\Windows\Forms\Rendering\DrawingEventArgs.cs (4)
27private readonly HDC _hdc; 47HDC dc, 77internal HDC HDC => IsStateClean ? default : _hdc; 120internal HDC GetHDC() => _hdc;
System\Windows\Forms\Rendering\DrawingEventFlags.cs (1)
24/// default when constructing via an <see cref="HDC"/> as it, by definition, has no <see cref="Graphics"/>
System\Windows\Forms\Rendering\DrawItemEventArgs.cs (6)
57HDC hdc, 66HDC hdc, 159internal HDC HDC => _event.HDC; 162HDC IHdcContext.GetHdc() => (HDC)((IDeviceContext)this).GetHdc(); 166HDC IGraphicsHdcProvider.GetHdc() => _event.GetHDC();
System\Windows\Forms\Rendering\FontCache.Data.cs (1)
39HDC hdc = screenDC.HDC;
System\Windows\Forms\Rendering\GdiCache.cs (3)
19/// Gets an <see cref="HDC"/> based off of the primary display. 26/// When disposed the <see cref="HDC"/> will be returned to the cache. Do NOT change the state of the 43/// When disposed the <see cref="Graphics"/> object will be disposed and the underlying <see cref="HDC"/>
System\Windows\Forms\Rendering\PaintEventArgs.cs (6)
49HDC hdc = e.HDC; 68HDC hdc, 132internal HDC HDC => _event.HDC; 135HDC IHdcContext.GetHdc() => (HDC)((IDeviceContext)this).GetHdc(); 139HDC IGraphicsHdcProvider.GetHdc() => _event.GetHDC();
System\Windows\Forms\Rendering\ScreenDcCache.cs (5)
51return new ScreenDcScope(this, (HDC)item); 62private void Release(HDC hdc) 80PInvokeCore.DeleteDC((HDC)temp); 92PInvokeCore.DeleteDC((HDC)hdc); 98private static unsafe void ValidateHdc(HDC hdc)
System\Windows\Forms\Rendering\ScreenDcCache.ScreenDcScope.cs (3)
17public HDC HDC { get; } 20public ScreenDcScope(ScreenDcCache cache, HDC hdc) 26public static implicit operator HDC(in ScreenDcScope scope) => scope.HDC;
System\Windows\Forms\Rendering\TextExtensions.cs (4)
50this HDC hdc, 152this HDC hdc, 211this HDC hdc, 282public static unsafe Size GetTextExtent(this HDC hdc, string? text, HFONT hfont)
System\Windows\Forms\Rendering\TextRenderer.cs (5)
330HDC hdc = e.HDC; 346HDC hdc, 356HDC hdc, 656/// The <see cref="HDC"/> to get the font from if <paramref name="font"/> is <see langword="null"/>. 658private static FontCache.Scope GetFontOrHdcHFONT(Font? font, FONT_QUALITY quality, HDC hdc)
System\Windows\Forms\Screen.cs (3)
54internal unsafe Screen(HMONITOR monitor, HDC hdc) 56HDC screenDC = hdc; 109PInvokeCore.EnumDisplayMonitors((HMONITOR hmonitor, HDC hdc) =>
System\Windows\Forms\Scrolling\ScrollBar.cs (1)
492internal override HBRUSH InitializeDCForWmCtlColor(HDC dc, MessageId msg) => default;
System\Windows\Forms\VisualStyles\VisualStyleRenderer.cs (6)
219internal unsafe void DrawBackground(HDC dc, Rectangle bounds, HWND hwnd = default) 248internal unsafe void DrawBackground(HDC dc, Rectangle bounds, Rectangle clipRectangle, HWND hwnd) 275internal unsafe Rectangle DrawEdge(HDC dc, Rectangle bounds, Edges edges, EdgeStyle style, EdgeEffects effects) 379internal void DrawText(HDC dc, Rectangle bounds, string? textToDraw, bool drawDisabled, TextFormatFlags flags) 413internal Rectangle GetBackgroundContentRectangle(HDC dc, Rectangle bounds) 579internal unsafe Size GetPartSize(HDC dc, ThemeSizeType type, HWND hwnd = default)
System.Windows.Forms.Design (1)
System\Windows\Forms\Design\ControlDesigner.cs (1)
2041using Graphics g = Graphics.FromHdc((HDC)m.WParamInternal);
System.Windows.Forms.Primitives (220)
_generated\135\Windows.Win32.IFont.g.cs (5)
835 private static winmdroot.Foundation.HRESULT SetHdc(IFont* pThis, winmdroot.Graphics.Gdi.HDC hDC) 862 public void SetHdc(winmdroot.Graphics.Gdi.HDC hDC) 864 ((delegate *unmanaged [Stdcall]<IFont*,winmdroot.Graphics.Gdi.HDC ,winmdroot.Foundation.HRESULT>)lpVtbl[26])((IFont*)Unsafe.AsPointer(ref this), hDC).ThrowOnFailure(); 942 internal delegate *unmanaged [Stdcall]<IFont*,winmdroot.Graphics.Gdi.HDC ,winmdroot.Foundation.HRESULT> SetHdc_27; 1063winmdroot.Foundation.HRESULT SetHdc(winmdroot.Graphics.Gdi.HDC hDC);
_generated\277\Windows.Win32.IViewObject.g.cs (21)
57 /// <inheritdoc cref="Draw(winmdroot.System.Com.DVASPECT, int, void*, winmdroot.System.Com.DVTARGETDEVICE*, winmdroot.Graphics.Gdi.HDC, winmdroot.Graphics.Gdi.HDC, winmdroot.Foundation.RECTL*, winmdroot.Foundation.RECTL*, nint, nuint)"/> 59 internal unsafe void Draw(winmdroot.System.Com.DVASPECT dwDrawAspect, int lindex, void* pvAspect, [Optional] winmdroot.System.Com.DVTARGETDEVICE* ptd, [Optional] winmdroot.Graphics.Gdi.HDC hdcTargetDev, winmdroot.Graphics.Gdi.HDC hdcDraw, [Optional] winmdroot.Foundation.RECTL? lprcBounds, [Optional] winmdroot.Foundation.RECTL? lprcWBounds, [Optional] nint pfnContinue, nuint dwContinue) 69 private static winmdroot.Foundation.HRESULT Draw(IViewObject* pThis, winmdroot.System.Com.DVASPECT dwDrawAspect, int lindex, void* pvAspect, [Optional] winmdroot.System.Com.DVTARGETDEVICE* ptd, [Optional] winmdroot.Graphics.Gdi.HDC hdcTargetDev, winmdroot.Graphics.Gdi.HDC hdcDraw, [Optional] winmdroot.Foundation.RECTL* lprcBounds, [Optional] winmdroot.Foundation.RECTL* lprcWBounds, [Optional] nint pfnContinue, nuint dwContinue) 109 public unsafe void Draw(winmdroot.System.Com.DVASPECT dwDrawAspect, int lindex, void* pvAspect, [Optional] winmdroot.System.Com.DVTARGETDEVICE* ptd, [Optional] winmdroot.Graphics.Gdi.HDC hdcTargetDev, winmdroot.Graphics.Gdi.HDC hdcDraw, [Optional] winmdroot.Foundation.RECTL* lprcBounds, [Optional] winmdroot.Foundation.RECTL* lprcWBounds, [Optional] nint pfnContinue, nuint dwContinue) 111 ((delegate *unmanaged [Stdcall]<IViewObject*,winmdroot.System.Com.DVASPECT ,int ,void* ,winmdroot.System.Com.DVTARGETDEVICE* ,winmdroot.Graphics.Gdi.HDC ,winmdroot.Graphics.Gdi.HDC ,winmdroot.Foundation.RECTL* ,winmdroot.Foundation.RECTL* ,nint ,nuint ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((IViewObject*)Unsafe.AsPointer(ref this), dwDrawAspect, lindex, pvAspect, ptd, hdcTargetDev, hdcDraw, lprcBounds, lprcWBounds, pfnContinue, dwContinue).ThrowOnFailure(); 114 /// <inheritdoc cref="GetColorSet(winmdroot.System.Com.DVASPECT, int, void*, winmdroot.System.Com.DVTARGETDEVICE*, winmdroot.Graphics.Gdi.HDC, winmdroot.Graphics.Gdi.LOGPALETTE**)"/> 116 internal unsafe void GetColorSet(winmdroot.System.Com.DVASPECT dwDrawAspect, int lindex, void* pvAspect, [Optional] winmdroot.System.Com.DVTARGETDEVICE* ptd, [Optional] winmdroot.Graphics.Gdi.HDC hicTargetDev, out winmdroot.Graphics.Gdi.LOGPALETTE* ppColorSet) 127 private static winmdroot.Foundation.HRESULT GetColorSet(IViewObject* pThis, winmdroot.System.Com.DVASPECT dwDrawAspect, int lindex, void* pvAspect, [Optional] winmdroot.System.Com.DVTARGETDEVICE* ptd, [Optional] winmdroot.Graphics.Gdi.HDC hicTargetDev, winmdroot.Graphics.Gdi.LOGPALETTE** ppColorSet) 159 public unsafe void GetColorSet(winmdroot.System.Com.DVASPECT dwDrawAspect, int lindex, void* pvAspect, [Optional] winmdroot.System.Com.DVTARGETDEVICE* ptd, [Optional] winmdroot.Graphics.Gdi.HDC hicTargetDev, winmdroot.Graphics.Gdi.LOGPALETTE** ppColorSet) 161 ((delegate *unmanaged [Stdcall]<IViewObject*,winmdroot.System.Com.DVASPECT ,int ,void* ,winmdroot.System.Com.DVTARGETDEVICE* ,winmdroot.Graphics.Gdi.HDC ,winmdroot.Graphics.Gdi.LOGPALETTE** ,winmdroot.Foundation.HRESULT>)lpVtbl[4])((IViewObject*)Unsafe.AsPointer(ref this), dwDrawAspect, lindex, pvAspect, ptd, hicTargetDev, ppColorSet).ThrowOnFailure(); 368 internal delegate *unmanaged [Stdcall]<IViewObject*,winmdroot.System.Com.DVASPECT ,int ,void* ,winmdroot.System.Com.DVTARGETDEVICE* ,winmdroot.Graphics.Gdi.HDC ,winmdroot.Graphics.Gdi.HDC ,winmdroot.Foundation.RECTL* ,winmdroot.Foundation.RECTL* ,nint ,nuint ,winmdroot.Foundation.HRESULT> Draw_4; 370 internal delegate *unmanaged [Stdcall]<IViewObject*,winmdroot.System.Com.DVASPECT ,int ,void* ,winmdroot.System.Com.DVTARGETDEVICE* ,winmdroot.Graphics.Gdi.HDC ,winmdroot.Graphics.Gdi.LOGPALETTE** ,winmdroot.Foundation.HRESULT> GetColorSet_5; 410 unsafe winmdroot.Foundation.HRESULT Draw(winmdroot.System.Com.DVASPECT dwDrawAspect, int lindex, void* pvAspect, [Optional] winmdroot.System.Com.DVTARGETDEVICE* ptd, [Optional] winmdroot.Graphics.Gdi.HDC hdcTargetDev, winmdroot.Graphics.Gdi.HDC hdcDraw, [Optional] winmdroot.Foundation.RECTL* lprcBounds, [Optional] winmdroot.Foundation.RECTL* lprcWBounds, [Optional] nint pfnContinue, nuint dwContinue); 413 unsafe winmdroot.Foundation.HRESULT GetColorSet(winmdroot.System.Com.DVASPECT dwDrawAspect, int lindex, void* pvAspect, [Optional] winmdroot.System.Com.DVTARGETDEVICE* ptd, [Optional] winmdroot.Graphics.Gdi.HDC hicTargetDev, winmdroot.Graphics.Gdi.LOGPALETTE** ppColorSet);
_generated\278\Windows.Win32.IViewObject2.g.cs (21)
57 /// <inheritdoc cref="Draw(winmdroot.System.Com.DVASPECT, int, void*, winmdroot.System.Com.DVTARGETDEVICE*, winmdroot.Graphics.Gdi.HDC, winmdroot.Graphics.Gdi.HDC, winmdroot.Foundation.RECTL*, winmdroot.Foundation.RECTL*, nint, nuint)"/> 59 internal unsafe void Draw(winmdroot.System.Com.DVASPECT dwDrawAspect, int lindex, void* pvAspect, [Optional] winmdroot.System.Com.DVTARGETDEVICE* ptd, [Optional] winmdroot.Graphics.Gdi.HDC hdcTargetDev, winmdroot.Graphics.Gdi.HDC hdcDraw, [Optional] winmdroot.Foundation.RECTL? lprcBounds, [Optional] winmdroot.Foundation.RECTL? lprcWBounds, [Optional] nint pfnContinue, nuint dwContinue) 69 private static winmdroot.Foundation.HRESULT Draw(IViewObject2* pThis, winmdroot.System.Com.DVASPECT dwDrawAspect, int lindex, void* pvAspect, [Optional] winmdroot.System.Com.DVTARGETDEVICE* ptd, [Optional] winmdroot.Graphics.Gdi.HDC hdcTargetDev, winmdroot.Graphics.Gdi.HDC hdcDraw, [Optional] winmdroot.Foundation.RECTL* lprcBounds, [Optional] winmdroot.Foundation.RECTL* lprcWBounds, [Optional] nint pfnContinue, nuint dwContinue) 86 public unsafe void Draw(winmdroot.System.Com.DVASPECT dwDrawAspect, int lindex, void* pvAspect, [Optional] winmdroot.System.Com.DVTARGETDEVICE* ptd, [Optional] winmdroot.Graphics.Gdi.HDC hdcTargetDev, winmdroot.Graphics.Gdi.HDC hdcDraw, [Optional] winmdroot.Foundation.RECTL* lprcBounds, [Optional] winmdroot.Foundation.RECTL* lprcWBounds, [Optional] nint pfnContinue, nuint dwContinue) 88 ((delegate *unmanaged [Stdcall]<IViewObject2*,winmdroot.System.Com.DVASPECT ,int ,void* ,winmdroot.System.Com.DVTARGETDEVICE* ,winmdroot.Graphics.Gdi.HDC ,winmdroot.Graphics.Gdi.HDC ,winmdroot.Foundation.RECTL* ,winmdroot.Foundation.RECTL* ,nint ,nuint ,winmdroot.Foundation.HRESULT>)lpVtbl[3])((IViewObject2*)Unsafe.AsPointer(ref this), dwDrawAspect, lindex, pvAspect, ptd, hdcTargetDev, hdcDraw, lprcBounds, lprcWBounds, pfnContinue, dwContinue).ThrowOnFailure(); 91 /// <inheritdoc cref="GetColorSet(winmdroot.System.Com.DVASPECT, int, void*, winmdroot.System.Com.DVTARGETDEVICE*, winmdroot.Graphics.Gdi.HDC, winmdroot.Graphics.Gdi.LOGPALETTE**)"/> 93 internal unsafe void GetColorSet(winmdroot.System.Com.DVASPECT dwDrawAspect, int lindex, void* pvAspect, [Optional] winmdroot.System.Com.DVTARGETDEVICE* ptd, [Optional] winmdroot.Graphics.Gdi.HDC hicTargetDev, out winmdroot.Graphics.Gdi.LOGPALETTE* ppColorSet) 104 private static winmdroot.Foundation.HRESULT GetColorSet(IViewObject2* pThis, winmdroot.System.Com.DVASPECT dwDrawAspect, int lindex, void* pvAspect, [Optional] winmdroot.System.Com.DVTARGETDEVICE* ptd, [Optional] winmdroot.Graphics.Gdi.HDC hicTargetDev, winmdroot.Graphics.Gdi.LOGPALETTE** ppColorSet) 121 public unsafe void GetColorSet(winmdroot.System.Com.DVASPECT dwDrawAspect, int lindex, void* pvAspect, [Optional] winmdroot.System.Com.DVTARGETDEVICE* ptd, [Optional] winmdroot.Graphics.Gdi.HDC hicTargetDev, winmdroot.Graphics.Gdi.LOGPALETTE** ppColorSet) 123 ((delegate *unmanaged [Stdcall]<IViewObject2*,winmdroot.System.Com.DVASPECT ,int ,void* ,winmdroot.System.Com.DVTARGETDEVICE* ,winmdroot.Graphics.Gdi.HDC ,winmdroot.Graphics.Gdi.LOGPALETTE** ,winmdroot.Foundation.HRESULT>)lpVtbl[4])((IViewObject2*)Unsafe.AsPointer(ref this), dwDrawAspect, lindex, pvAspect, ptd, hicTargetDev, ppColorSet).ThrowOnFailure(); 333 internal delegate *unmanaged [Stdcall]<IViewObject2*,winmdroot.System.Com.DVASPECT ,int ,void* ,winmdroot.System.Com.DVTARGETDEVICE* ,winmdroot.Graphics.Gdi.HDC ,winmdroot.Graphics.Gdi.HDC ,winmdroot.Foundation.RECTL* ,winmdroot.Foundation.RECTL* ,nint ,nuint ,winmdroot.Foundation.HRESULT> Draw_4; 335 internal delegate *unmanaged [Stdcall]<IViewObject2*,winmdroot.System.Com.DVASPECT ,int ,void* ,winmdroot.System.Com.DVTARGETDEVICE* ,winmdroot.Graphics.Gdi.HDC ,winmdroot.Graphics.Gdi.LOGPALETTE** ,winmdroot.Foundation.HRESULT> GetColorSet_5; 378 unsafe new winmdroot.Foundation.HRESULT Draw(winmdroot.System.Com.DVASPECT dwDrawAspect, int lindex, void* pvAspect, [Optional] winmdroot.System.Com.DVTARGETDEVICE* ptd, [Optional] winmdroot.Graphics.Gdi.HDC hdcTargetDev, winmdroot.Graphics.Gdi.HDC hdcDraw, [Optional] winmdroot.Foundation.RECTL* lprcBounds, [Optional] winmdroot.Foundation.RECTL* lprcWBounds, [Optional] nint pfnContinue, nuint dwContinue); 381 unsafe new winmdroot.Foundation.HRESULT GetColorSet(winmdroot.System.Com.DVASPECT dwDrawAspect, int lindex, void* pvAspect, [Optional] winmdroot.System.Com.DVTARGETDEVICE* ptd, [Optional] winmdroot.Graphics.Gdi.HDC hicTargetDev, winmdroot.Graphics.Gdi.LOGPALETTE** ppColorSet);
_generated\343\Windows.Win32.NMCUSTOMDRAW.g.cs (1)
40 internal winmdroot.Graphics.Gdi.HDC hdc;
_generated\410\Windows.Win32.PInvoke.COMCTL32.dll.g.cs (2)
125 internal static extern winmdroot.Foundation.BOOL ImageList_Draw(winmdroot.UI.Controls.HIMAGELIST himl, int i, winmdroot.Graphics.Gdi.HDC hdcDst, int x, int y, winmdroot.UI.Controls.IMAGE_LIST_DRAW_STYLE fStyle); 165 internal static extern winmdroot.Foundation.BOOL ImageList_DrawEx(winmdroot.UI.Controls.HIMAGELIST himl, int i, winmdroot.Graphics.Gdi.HDC hdcDst, int x, int y, int dx, int dy, winmdroot.Foundation.COLORREF rgbBk, winmdroot.Foundation.COLORREF rgbFg, winmdroot.UI.Controls.IMAGE_LIST_DRAW_STYLE fStyle);
_generated\414\Windows.Win32.PInvoke.GDI32.dll.g.cs (70)
62 internal static extern winmdroot.Graphics.Gdi.HPALETTE CreateHalftonePalette([Optional] winmdroot.Graphics.Gdi.HDC hdc); 102 internal static extern winmdroot.Foundation.BOOL Ellipse(winmdroot.Graphics.Gdi.HDC hdc, int left, int top, int right, int bottom); 104 /// <inheritdoc cref="ExtTextOut(winmdroot.Graphics.Gdi.HDC, int, int, winmdroot.Graphics.Gdi.ETO_OPTIONS, winmdroot.Foundation.RECT*, winmdroot.Foundation.PCWSTR, uint, int*)"/> 106 internal static unsafe winmdroot.Foundation.BOOL ExtTextOut(winmdroot.Graphics.Gdi.HDC hdc, int x, int y, winmdroot.Graphics.Gdi.ETO_OPTIONS options, [Optional] winmdroot.Foundation.RECT? lprect, [Optional] string lpString, [Optional] ReadOnlySpan<int> lpDx) 142 internal static extern unsafe winmdroot.Foundation.BOOL ExtTextOut(winmdroot.Graphics.Gdi.HDC hdc, int x, int y, winmdroot.Graphics.Gdi.ETO_OPTIONS options, [Optional] winmdroot.Foundation.RECT* lprect, [Optional] winmdroot.Foundation.PCWSTR lpString, uint c, [Optional] int* lpDx); 179 internal static extern winmdroot.Foundation.COLORREF GetBkColor(winmdroot.Graphics.Gdi.HDC hdc); 190 internal static winmdroot.Graphics.Gdi.BACKGROUND_MODE GetBkMode(winmdroot.Graphics.Gdi.HDC hdc) 196 static extern int LocalExternFunction(winmdroot.Graphics.Gdi.HDC hdc); 199 /// <inheritdoc cref="GetBrushOrgEx(winmdroot.Graphics.Gdi.HDC, global::System.Drawing.Point*)"/> 202 internal static unsafe winmdroot.Foundation.BOOL GetBrushOrgEx(winmdroot.Graphics.Gdi.HDC hdc, out global::System.Drawing.Point lppt) 223 internal static extern unsafe winmdroot.Foundation.BOOL GetBrushOrgEx(winmdroot.Graphics.Gdi.HDC hdc, global::System.Drawing.Point* lppt); 225 /// <inheritdoc cref="GetClipBox(winmdroot.Graphics.Gdi.HDC, winmdroot.Foundation.RECT*)"/> 228 internal static unsafe winmdroot.Graphics.Gdi.GDI_REGION_TYPE GetClipBox(winmdroot.Graphics.Gdi.HDC hdc, out winmdroot.Foundation.RECT lprect) 249 internal static extern unsafe winmdroot.Graphics.Gdi.GDI_REGION_TYPE GetClipBox(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Foundation.RECT* lprect); 261 internal static extern int GetClipRgn(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.HRGN hrgn); 271 internal static winmdroot.Graphics.Gdi.HGDIOBJ GetCurrentObject(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.OBJ_TYPE type) 277 static extern winmdroot.Graphics.Gdi.HGDIOBJ LocalExternFunction(winmdroot.Graphics.Gdi.HDC hdc, uint type); 280 /// <inheritdoc cref="GetDIBits(winmdroot.Graphics.Gdi.HDC, winmdroot.Graphics.Gdi.HBITMAP, uint, uint, void*, winmdroot.Graphics.Gdi.BITMAPINFO*, winmdroot.Graphics.Gdi.DIB_USAGE)"/> 282 internal static unsafe int GetDIBits(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.HBITMAP hbm, uint start, uint cLines, winmdroot.Graphics.Gdi.BITMAPINFO* lpbmi, winmdroot.Graphics.Gdi.DIB_USAGE usage) 307 internal static extern unsafe int GetDIBits(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.HBITMAP hbm, uint start, uint cLines, [Optional] void* lpvBits, winmdroot.Graphics.Gdi.BITMAPINFO* lpbmi, winmdroot.Graphics.Gdi.DIB_USAGE usage); 321 internal static extern winmdroot.Graphics.Gdi.HDC_MAP_MODE GetMapMode(winmdroot.Graphics.Gdi.HDC hdc); 334 internal static extern winmdroot.Foundation.COLORREF GetNearestColor(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Foundation.COLORREF color); 374 internal static extern winmdroot.Graphics.Gdi.R2_MODE GetROP2(winmdroot.Graphics.Gdi.HDC hdc); 376 /// <inheritdoc cref="GetSystemPaletteEntries(winmdroot.Graphics.Gdi.HDC, uint, uint, winmdroot.Graphics.Gdi.PALETTEENTRY*)"/> 378 internal static unsafe uint GetSystemPaletteEntries(winmdroot.Graphics.Gdi.HDC hdc, uint iStart, [Optional] Span<winmdroot.Graphics.Gdi.PALETTEENTRY> pPalEntries) 398 internal static extern unsafe uint GetSystemPaletteEntries(winmdroot.Graphics.Gdi.HDC hdc, uint iStart, uint cEntries, [Optional] winmdroot.Graphics.Gdi.PALETTEENTRY* pPalEntries); 413 internal static extern winmdroot.Graphics.Gdi.TEXT_ALIGN_OPTIONS GetTextAlign(winmdroot.Graphics.Gdi.HDC hdc); 423 internal static extern winmdroot.Foundation.COLORREF GetTextColor(winmdroot.Graphics.Gdi.HDC hdc); 425 /// <inheritdoc cref="GetTextExtentPoint32W(winmdroot.Graphics.Gdi.HDC, winmdroot.Foundation.PCWSTR, int, winmdroot.Foundation.SIZE*)"/> 428 internal static unsafe winmdroot.Foundation.BOOL GetTextExtentPoint32W(winmdroot.Graphics.Gdi.HDC hdc, string lpString, int c, out winmdroot.Foundation.SIZE psizl) 455 internal static extern unsafe winmdroot.Foundation.BOOL GetTextExtentPoint32W(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Foundation.PCWSTR lpString, int c, winmdroot.Foundation.SIZE* psizl); 457 /// <inheritdoc cref="GetTextMetrics(winmdroot.Graphics.Gdi.HDC, winmdroot.Graphics.Gdi.TEXTMETRICW*)"/> 460 internal static unsafe winmdroot.Foundation.BOOL GetTextMetrics(winmdroot.Graphics.Gdi.HDC hdc, out winmdroot.Graphics.Gdi.TEXTMETRICW lptm) 478 internal static extern unsafe winmdroot.Foundation.BOOL GetTextMetrics(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Graphics.Gdi.TEXTMETRICW* lptm); 480 /// <inheritdoc cref="GetViewportExtEx(winmdroot.Graphics.Gdi.HDC, winmdroot.Foundation.SIZE*)"/> 483 internal static unsafe winmdroot.Foundation.BOOL GetViewportExtEx(winmdroot.Graphics.Gdi.HDC hdc, out winmdroot.Foundation.SIZE lpsize) 503 internal static extern unsafe winmdroot.Foundation.BOOL GetViewportExtEx(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Foundation.SIZE* lpsize); 521 internal static extern winmdroot.Graphics.Gdi.GDI_REGION_TYPE IntersectClipRect(winmdroot.Graphics.Gdi.HDC hdc, int left, int top, int right, int bottom); 536 internal static extern winmdroot.Foundation.BOOL LineTo(winmdroot.Graphics.Gdi.HDC hdc, int x, int y); 538 /// <inheritdoc cref="LPtoDP(winmdroot.Graphics.Gdi.HDC, global::System.Drawing.Point*, int)"/> 540 internal static unsafe winmdroot.Foundation.BOOL LPtoDP(winmdroot.Graphics.Gdi.HDC hdc, ReadOnlySpan<global::System.Drawing.Point> lppt) 562 internal static extern unsafe winmdroot.Foundation.BOOL LPtoDP(winmdroot.Graphics.Gdi.HDC hdc, global::System.Drawing.Point* lppt, int c); 564 /// <inheritdoc cref="MoveToEx(winmdroot.Graphics.Gdi.HDC, int, int, global::System.Drawing.Point*)"/> 567 internal static unsafe winmdroot.Foundation.BOOL MoveToEx(winmdroot.Graphics.Gdi.HDC hdc, int x, int y, out global::System.Drawing.Point lppt) 576 /// <inheritdoc cref="MoveToEx(winmdroot.Graphics.Gdi.HDC, int, int, global::System.Drawing.Point*)"/> 578 internal static unsafe winmdroot.Foundation.BOOL MoveToEx(winmdroot.Graphics.Gdi.HDC hdc, int x, int y) 595 internal static extern unsafe winmdroot.Foundation.BOOL MoveToEx(winmdroot.Graphics.Gdi.HDC hdc, int x, int y, [Optional] global::System.Drawing.Point* lppt); 613 internal static extern winmdroot.Foundation.BOOL PatBlt(winmdroot.Graphics.Gdi.HDC hdc, int x, int y, int w, int h, winmdroot.Graphics.Gdi.ROP_CODE rop); 629 internal static extern winmdroot.Foundation.BOOL RoundRect(winmdroot.Graphics.Gdi.HDC hdc, int left, int top, int right, int bottom, int width, int height); 631 /// <inheritdoc cref="SetViewportExtEx(winmdroot.Graphics.Gdi.HDC, int, int, winmdroot.Foundation.SIZE*)"/> 634 internal static unsafe winmdroot.Foundation.BOOL SetViewportExtEx(winmdroot.Graphics.Gdi.HDC hdc, int x, int y, out winmdroot.Foundation.SIZE lpsz) 643 /// <inheritdoc cref="SetViewportExtEx(winmdroot.Graphics.Gdi.HDC, int, int, winmdroot.Foundation.SIZE*)"/> 645 internal static unsafe winmdroot.Foundation.BOOL SetViewportExtEx(winmdroot.Graphics.Gdi.HDC hdc, int x, int y) 666 internal static extern unsafe winmdroot.Foundation.BOOL SetViewportExtEx(winmdroot.Graphics.Gdi.HDC hdc, int x, int y, [Optional] winmdroot.Foundation.SIZE* lpsz); 668 /// <inheritdoc cref="SetViewportOrgEx(winmdroot.Graphics.Gdi.HDC, int, int, global::System.Drawing.Point*)"/> 671 internal static unsafe winmdroot.Foundation.BOOL SetViewportOrgEx(winmdroot.Graphics.Gdi.HDC hdc, int x, int y, out global::System.Drawing.Point lppt) 680 /// <inheritdoc cref="SetViewportOrgEx(winmdroot.Graphics.Gdi.HDC, int, int, global::System.Drawing.Point*)"/> 682 internal static unsafe winmdroot.Foundation.BOOL SetViewportOrgEx(winmdroot.Graphics.Gdi.HDC hdc, int x, int y) 704 internal static extern unsafe winmdroot.Foundation.BOOL SetViewportOrgEx(winmdroot.Graphics.Gdi.HDC hdc, int x, int y, [Optional] global::System.Drawing.Point* lppt); 706 /// <inheritdoc cref="SetWindowExtEx(winmdroot.Graphics.Gdi.HDC, int, int, winmdroot.Foundation.SIZE*)"/> 709 internal static unsafe winmdroot.Foundation.BOOL SetWindowExtEx(winmdroot.Graphics.Gdi.HDC hdc, int x, int y, out winmdroot.Foundation.SIZE lpsz) 718 /// <inheritdoc cref="SetWindowExtEx(winmdroot.Graphics.Gdi.HDC, int, int, winmdroot.Foundation.SIZE*)"/> 720 internal static unsafe winmdroot.Foundation.BOOL SetWindowExtEx(winmdroot.Graphics.Gdi.HDC hdc, int x, int y) 741 internal static extern unsafe winmdroot.Foundation.BOOL SetWindowExtEx(winmdroot.Graphics.Gdi.HDC hdc, int x, int y, [Optional] winmdroot.Foundation.SIZE* lpsz); 743 /// <inheritdoc cref="SetWindowOrgEx(winmdroot.Graphics.Gdi.HDC, int, int, global::System.Drawing.Point*)"/> 746 internal static unsafe winmdroot.Foundation.BOOL SetWindowOrgEx(winmdroot.Graphics.Gdi.HDC hdc, int x, int y, out global::System.Drawing.Point lppt) 755 /// <inheritdoc cref="SetWindowOrgEx(winmdroot.Graphics.Gdi.HDC, int, int, global::System.Drawing.Point*)"/> 757 internal static unsafe winmdroot.Foundation.BOOL SetWindowOrgEx(winmdroot.Graphics.Gdi.HDC hdc, int x, int y) 779 internal static extern unsafe winmdroot.Foundation.BOOL SetWindowOrgEx(winmdroot.Graphics.Gdi.HDC hdc, int x, int y, [Optional] global::System.Drawing.Point* lppt); 805 internal static extern unsafe int StretchDIBits(winmdroot.Graphics.Gdi.HDC hdc, int xDest, int yDest, int DestWidth, int DestHeight, int xSrc, int ySrc, int SrcWidth, int SrcHeight, [Optional] void* lpBits, winmdroot.Graphics.Gdi.BITMAPINFO* lpbmi, winmdroot.Graphics.Gdi.DIB_USAGE iUsage, winmdroot.Graphics.Gdi.ROP_CODE rop);
_generated\425\Windows.Win32.PInvoke.USER32.dll.g.cs (16)
669 /// <inheritdoc cref="DrawEdge(winmdroot.Graphics.Gdi.HDC, winmdroot.Foundation.RECT*, winmdroot.Graphics.Gdi.DRAWEDGE_FLAGS, winmdroot.Graphics.Gdi.DRAW_EDGE_FLAGS)"/> 672 internal static unsafe winmdroot.Foundation.BOOL DrawEdge(winmdroot.Graphics.Gdi.HDC hdc, ref winmdroot.Foundation.RECT qrc, winmdroot.Graphics.Gdi.DRAWEDGE_FLAGS edge, winmdroot.Graphics.Gdi.DRAW_EDGE_FLAGS grfFlags) 698 internal static extern unsafe winmdroot.Foundation.BOOL DrawEdge(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Foundation.RECT* qrc, winmdroot.Graphics.Gdi.DRAWEDGE_FLAGS edge, winmdroot.Graphics.Gdi.DRAW_EDGE_FLAGS grfFlags); 700 /// <inheritdoc cref="DrawFrameControl(winmdroot.Graphics.Gdi.HDC, winmdroot.Foundation.RECT*, uint, uint)"/> 703 internal static unsafe winmdroot.Foundation.BOOL DrawFrameControl(winmdroot.Graphics.Gdi.HDC hdc, ref winmdroot.Foundation.RECT lprc, uint uType, uint uState) 722 internal static extern unsafe winmdroot.Foundation.BOOL DrawFrameControl(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Foundation.RECT* lprc, uint uType, uint uState); 747 /// <inheritdoc cref="DrawText(winmdroot.Graphics.Gdi.HDC, winmdroot.Foundation.PCWSTR, int, winmdroot.Foundation.RECT*, winmdroot.Graphics.Gdi.DRAW_TEXT_FORMAT)"/> 750 internal static unsafe int DrawText(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Foundation.PCWSTR lpchText, int cchText, ref winmdroot.Foundation.RECT lprc, winmdroot.Graphics.Gdi.DRAW_TEXT_FORMAT format) 778 internal static extern unsafe int DrawText(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Foundation.PCWSTR lpchText, int cchText, winmdroot.Foundation.RECT* lprc, winmdroot.Graphics.Gdi.DRAW_TEXT_FORMAT format); 780 /// <inheritdoc cref="DrawTextEx(winmdroot.Graphics.Gdi.HDC, winmdroot.Foundation.PWSTR, int, winmdroot.Foundation.RECT*, winmdroot.Graphics.Gdi.DRAW_TEXT_FORMAT, winmdroot.Graphics.Gdi.DRAWTEXTPARAMS*)"/> 783 internal static unsafe int DrawTextEx(winmdroot.Graphics.Gdi.HDC hdc, ref Span<char>lpchText, int cchText, ref winmdroot.Foundation.RECT lprc, winmdroot.Graphics.Gdi.DRAW_TEXT_FORMAT format, [Optional] winmdroot.Graphics.Gdi.DRAWTEXTPARAMS? lpdtp) 819 internal static extern unsafe int DrawTextEx(winmdroot.Graphics.Gdi.HDC hdc, winmdroot.Foundation.PWSTR lpchText, int cchText, winmdroot.Foundation.RECT* lprc, winmdroot.Graphics.Gdi.DRAW_TEXT_FORMAT format, [Optional] winmdroot.Graphics.Gdi.DRAWTEXTPARAMS* lpdtp); 953 /// <inheritdoc cref="FillRect(winmdroot.Graphics.Gdi.HDC, winmdroot.Foundation.RECT*, winmdroot.Graphics.Gdi.HBRUSH)"/> 956 internal static unsafe int FillRect(winmdroot.Graphics.Gdi.HDC hDC, in winmdroot.Foundation.RECT lprc, winmdroot.Graphics.Gdi.HBRUSH hbr) 980 internal static extern unsafe int FillRect(winmdroot.Graphics.Gdi.HDC hDC, winmdroot.Foundation.RECT* lprc, winmdroot.Graphics.Gdi.HBRUSH hbr); 2848 internal static extern int ReleaseDC([Optional] winmdroot.Foundation.HWND hWnd, winmdroot.Graphics.Gdi.HDC hDC);
_generated\426\Windows.Win32.PInvoke.UXTHEME.dll.g.cs (42)
39 /// <inheritdoc cref="DrawThemeBackground(winmdroot.UI.Controls.HTHEME, winmdroot.Graphics.Gdi.HDC, int, int, winmdroot.Foundation.RECT*, winmdroot.Foundation.RECT*)"/> 42 internal static unsafe winmdroot.Foundation.HRESULT DrawThemeBackground(winmdroot.UI.Controls.HTHEME hTheme, winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, in winmdroot.Foundation.RECT pRect, [Optional] winmdroot.Foundation.RECT? pClipRect) 83 internal static extern unsafe winmdroot.Foundation.HRESULT DrawThemeBackground(winmdroot.UI.Controls.HTHEME hTheme, winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, winmdroot.Foundation.RECT* pRect, [Optional] winmdroot.Foundation.RECT* pClipRect); 85 /// <inheritdoc cref="DrawThemeEdge(winmdroot.UI.Controls.HTHEME, winmdroot.Graphics.Gdi.HDC, int, int, winmdroot.Foundation.RECT*, winmdroot.Graphics.Gdi.DRAWEDGE_FLAGS, winmdroot.Graphics.Gdi.DRAW_EDGE_FLAGS, winmdroot.Foundation.RECT*)"/> 88 internal static unsafe winmdroot.Foundation.HRESULT DrawThemeEdge(winmdroot.UI.Controls.HTHEME hTheme, winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, in winmdroot.Foundation.RECT pDestRect, winmdroot.Graphics.Gdi.DRAWEDGE_FLAGS uEdge, winmdroot.Graphics.Gdi.DRAW_EDGE_FLAGS uFlags, out winmdroot.Foundation.RECT pContentRect) 100 /// <inheritdoc cref="DrawThemeEdge(winmdroot.UI.Controls.HTHEME, winmdroot.Graphics.Gdi.HDC, int, int, winmdroot.Foundation.RECT*, winmdroot.Graphics.Gdi.DRAWEDGE_FLAGS, winmdroot.Graphics.Gdi.DRAW_EDGE_FLAGS, winmdroot.Foundation.RECT*)"/> 102 internal static unsafe winmdroot.Foundation.HRESULT DrawThemeEdge(winmdroot.UI.Controls.HTHEME hTheme, winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, in winmdroot.Foundation.RECT pDestRect, winmdroot.Graphics.Gdi.DRAWEDGE_FLAGS uEdge, winmdroot.Graphics.Gdi.DRAW_EDGE_FLAGS uFlags) 150 internal static extern unsafe winmdroot.Foundation.HRESULT DrawThemeEdge(winmdroot.UI.Controls.HTHEME hTheme, winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, winmdroot.Foundation.RECT* pDestRect, winmdroot.Graphics.Gdi.DRAWEDGE_FLAGS uEdge, winmdroot.Graphics.Gdi.DRAW_EDGE_FLAGS uFlags, [Optional] winmdroot.Foundation.RECT* pContentRect); 152 /// <inheritdoc cref="DrawThemeParentBackground(winmdroot.Foundation.HWND, winmdroot.Graphics.Gdi.HDC, winmdroot.Foundation.RECT*)"/> 155 internal static unsafe winmdroot.Foundation.HRESULT DrawThemeParentBackground(winmdroot.Foundation.HWND hwnd, winmdroot.Graphics.Gdi.HDC hdc, [Optional] winmdroot.Foundation.RECT? prc) 183 internal static extern unsafe winmdroot.Foundation.HRESULT DrawThemeParentBackground(winmdroot.Foundation.HWND hwnd, winmdroot.Graphics.Gdi.HDC hdc, [Optional] winmdroot.Foundation.RECT* prc); 185 /// <inheritdoc cref="DrawThemeText(winmdroot.UI.Controls.HTHEME, winmdroot.Graphics.Gdi.HDC, int, int, winmdroot.Foundation.PCWSTR, int, winmdroot.Graphics.Gdi.DRAW_TEXT_FORMAT, uint, winmdroot.Foundation.RECT*)"/> 188 internal static unsafe winmdroot.Foundation.HRESULT DrawThemeText(winmdroot.UI.Controls.HTHEME hTheme, winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, string pszText, int cchText, winmdroot.Graphics.Gdi.DRAW_TEXT_FORMAT dwTextFlags, uint dwTextFlags2, in winmdroot.Foundation.RECT pRect) 243 internal static extern unsafe winmdroot.Foundation.HRESULT DrawThemeText(winmdroot.UI.Controls.HTHEME hTheme, winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, winmdroot.Foundation.PCWSTR pszText, int cchText, winmdroot.Graphics.Gdi.DRAW_TEXT_FORMAT dwTextFlags, uint dwTextFlags2, winmdroot.Foundation.RECT* pRect); 310 /// <inheritdoc cref="GetThemeBackgroundContentRect(winmdroot.UI.Controls.HTHEME, winmdroot.Graphics.Gdi.HDC, int, int, winmdroot.Foundation.RECT*, winmdroot.Foundation.RECT*)"/> 313 internal static unsafe winmdroot.Foundation.HRESULT GetThemeBackgroundContentRect(winmdroot.UI.Controls.HTHEME hTheme, [Optional] winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, in winmdroot.Foundation.RECT pBoundingRect, out winmdroot.Foundation.RECT pContentRect) 356 internal static extern unsafe winmdroot.Foundation.HRESULT GetThemeBackgroundContentRect(winmdroot.UI.Controls.HTHEME hTheme, [Optional] winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, winmdroot.Foundation.RECT* pBoundingRect, winmdroot.Foundation.RECT* pContentRect); 358 /// <inheritdoc cref="GetThemeBackgroundExtent(winmdroot.UI.Controls.HTHEME, winmdroot.Graphics.Gdi.HDC, int, int, winmdroot.Foundation.RECT*, winmdroot.Foundation.RECT*)"/> 361 internal static unsafe winmdroot.Foundation.HRESULT GetThemeBackgroundExtent(winmdroot.UI.Controls.HTHEME hTheme, [Optional] winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, in winmdroot.Foundation.RECT pContentRect, out winmdroot.Foundation.RECT pExtentRect) 404 internal static extern unsafe winmdroot.Foundation.HRESULT GetThemeBackgroundExtent(winmdroot.UI.Controls.HTHEME hTheme, [Optional] winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, winmdroot.Foundation.RECT* pContentRect, winmdroot.Foundation.RECT* pExtentRect); 406 /// <inheritdoc cref="GetThemeBackgroundRegion(winmdroot.UI.Controls.HTHEME, winmdroot.Graphics.Gdi.HDC, int, int, winmdroot.Foundation.RECT*, winmdroot.Graphics.Gdi.HRGN*)"/> 409 internal static unsafe winmdroot.Foundation.HRESULT GetThemeBackgroundRegion(winmdroot.UI.Controls.HTHEME hTheme, [Optional] winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, in winmdroot.Foundation.RECT pRect, out winmdroot.Graphics.Gdi.HRGN pRegion) 452 internal static extern unsafe winmdroot.Foundation.HRESULT GetThemeBackgroundRegion(winmdroot.UI.Controls.HTHEME hTheme, [Optional] winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, winmdroot.Foundation.RECT* pRect, winmdroot.Graphics.Gdi.HRGN* pRegion); 689 /// <inheritdoc cref="GetThemeFont(winmdroot.UI.Controls.HTHEME, winmdroot.Graphics.Gdi.HDC, int, int, int, winmdroot.Graphics.Gdi.LOGFONTW*)"/> 692 internal static unsafe winmdroot.Foundation.HRESULT GetThemeFont(winmdroot.UI.Controls.HTHEME hTheme, [Optional] winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, int iPropId, out winmdroot.Graphics.Gdi.LOGFONTW pFont) 735 internal static extern unsafe winmdroot.Foundation.HRESULT GetThemeFont(winmdroot.UI.Controls.HTHEME hTheme, [Optional] winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, int iPropId, winmdroot.Graphics.Gdi.LOGFONTW* pFont); 786 /// <inheritdoc cref="GetThemeMargins(winmdroot.UI.Controls.HTHEME, winmdroot.Graphics.Gdi.HDC, int, int, winmdroot.UI.Controls.THEME_PROPERTY_SYMBOL_ID, winmdroot.Foundation.RECT*, winmdroot.UI.Controls.MARGINS*)"/> 789 internal static unsafe winmdroot.Foundation.HRESULT GetThemeMargins(winmdroot.UI.Controls.HTHEME hTheme, [Optional] winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, winmdroot.UI.Controls.THEME_PROPERTY_SYMBOL_ID iPropId, [Optional] winmdroot.Foundation.RECT? prc, out winmdroot.UI.Controls.MARGINS pMargins) 835 internal static unsafe winmdroot.Foundation.HRESULT GetThemeMargins(winmdroot.UI.Controls.HTHEME hTheme, [Optional] winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, winmdroot.UI.Controls.THEME_PROPERTY_SYMBOL_ID iPropId, [Optional] winmdroot.Foundation.RECT* prc, winmdroot.UI.Controls.MARGINS* pMargins) 841 static extern unsafe winmdroot.Foundation.HRESULT LocalExternFunction(winmdroot.UI.Controls.HTHEME hTheme, [Optional] winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, int iPropId, [Optional] winmdroot.Foundation.RECT* prc, winmdroot.UI.Controls.MARGINS* pMargins); 844 /// <inheritdoc cref="GetThemePartSize(winmdroot.UI.Controls.HTHEME, winmdroot.Graphics.Gdi.HDC, int, int, winmdroot.Foundation.RECT*, winmdroot.UI.Controls.THEMESIZE, winmdroot.Foundation.SIZE*)"/> 847 internal static unsafe winmdroot.Foundation.HRESULT GetThemePartSize(winmdroot.UI.Controls.HTHEME hTheme, [Optional] winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, [Optional] winmdroot.Foundation.RECT? prc, winmdroot.UI.Controls.THEMESIZE eSize, out winmdroot.Foundation.SIZE psz) 890 internal static extern unsafe winmdroot.Foundation.HRESULT GetThemePartSize(winmdroot.UI.Controls.HTHEME hTheme, [Optional] winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, [Optional] winmdroot.Foundation.RECT* prc, winmdroot.UI.Controls.THEMESIZE eSize, winmdroot.Foundation.SIZE* psz); 1051 /// <inheritdoc cref="GetThemeTextExtent(winmdroot.UI.Controls.HTHEME, winmdroot.Graphics.Gdi.HDC, int, int, winmdroot.Foundation.PCWSTR, int, winmdroot.Graphics.Gdi.DRAW_TEXT_FORMAT, winmdroot.Foundation.RECT*, winmdroot.Foundation.RECT*)"/> 1054 internal static unsafe winmdroot.Foundation.HRESULT GetThemeTextExtent(winmdroot.UI.Controls.HTHEME hTheme, winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, string pszText, int cchCharCount, winmdroot.Graphics.Gdi.DRAW_TEXT_FORMAT dwTextFlags, [Optional] winmdroot.Foundation.RECT? pBoundingRect, out winmdroot.Foundation.RECT pExtentRect) 1112 internal static extern unsafe winmdroot.Foundation.HRESULT GetThemeTextExtent(winmdroot.UI.Controls.HTHEME hTheme, winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, winmdroot.Foundation.PCWSTR pszText, int cchCharCount, winmdroot.Graphics.Gdi.DRAW_TEXT_FORMAT dwTextFlags, [Optional] winmdroot.Foundation.RECT* pBoundingRect, winmdroot.Foundation.RECT* pExtentRect); 1114 /// <inheritdoc cref="GetThemeTextMetrics(winmdroot.UI.Controls.HTHEME, winmdroot.Graphics.Gdi.HDC, int, int, winmdroot.Graphics.Gdi.TEXTMETRICW*)"/> 1117 internal static unsafe winmdroot.Foundation.HRESULT GetThemeTextMetrics(winmdroot.UI.Controls.HTHEME hTheme, winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, out winmdroot.Graphics.Gdi.TEXTMETRICW ptm) 1155 internal static extern unsafe winmdroot.Foundation.HRESULT GetThemeTextMetrics(winmdroot.UI.Controls.HTHEME hTheme, winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, winmdroot.Graphics.Gdi.TEXTMETRICW* ptm); 1157 /// <inheritdoc cref="HitTestThemeBackground(winmdroot.UI.Controls.HTHEME, winmdroot.Graphics.Gdi.HDC, int, int, winmdroot.UI.Controls.HIT_TEST_BACKGROUND_OPTIONS, winmdroot.Foundation.RECT*, winmdroot.Graphics.Gdi.HRGN, global::System.Drawing.Point, ushort*)"/> 1160 internal static unsafe winmdroot.Foundation.HRESULT HitTestThemeBackground(winmdroot.UI.Controls.HTHEME hTheme, [Optional] winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, winmdroot.UI.Controls.HIT_TEST_BACKGROUND_OPTIONS dwOptions, in winmdroot.Foundation.RECT pRect, [Optional] winmdroot.Graphics.Gdi.HRGN hrgn, global::System.Drawing.Point ptTest, out ushort pwHitTestCode) 1216 internal static extern unsafe winmdroot.Foundation.HRESULT HitTestThemeBackground(winmdroot.UI.Controls.HTHEME hTheme, [Optional] winmdroot.Graphics.Gdi.HDC hdc, int iPartId, int iStateId, winmdroot.UI.Controls.HIT_TEST_BACKGROUND_OPTIONS dwOptions, winmdroot.Foundation.RECT* pRect, [Optional] winmdroot.Graphics.Gdi.HRGN hrgn, global::System.Drawing.Point ptTest, ushort* pwHitTestCode);
_generated\47\Windows.Win32.DRAWITEMSTRUCT.g.cs (1)
66 internal winmdroot.Graphics.Gdi.HDC hDC;
_generated\521\Windows.Win32.System_Ole_IViewObject2_Extensions.g.cs (6)
23 /// <inheritdoc cref="winmdroot.System.Ole.IViewObject2.Interface.Draw(winmdroot.System.Com.DVASPECT, int, void*, winmdroot.System.Com.DVTARGETDEVICE*, winmdroot.Graphics.Gdi.HDC, winmdroot.Graphics.Gdi.HDC, winmdroot.Foundation.RECTL*, winmdroot.Foundation.RECTL*, nint, nuint)"/> 24 internal static unsafe winmdroot.Foundation.HRESULT Draw(this winmdroot.System.Ole.IViewObject2.Interface @this, winmdroot.System.Com.DVASPECT dwDrawAspect, int lindex, void* pvAspect, [Optional] winmdroot.System.Com.DVTARGETDEVICE* ptd, [Optional] winmdroot.Graphics.Gdi.HDC hdcTargetDev, winmdroot.Graphics.Gdi.HDC hdcDraw, [Optional] winmdroot.Foundation.RECTL? lprcBounds, [Optional] winmdroot.Foundation.RECTL? lprcWBounds, [Optional] nint pfnContinue, nuint dwContinue) 32 /// <inheritdoc cref="winmdroot.System.Ole.IViewObject2.Interface.GetColorSet(winmdroot.System.Com.DVASPECT, int, void*, winmdroot.System.Com.DVTARGETDEVICE*, winmdroot.Graphics.Gdi.HDC, winmdroot.Graphics.Gdi.LOGPALETTE**)"/> 33 internal static unsafe winmdroot.Foundation.HRESULT GetColorSet(this winmdroot.System.Ole.IViewObject2.Interface @this, winmdroot.System.Com.DVASPECT dwDrawAspect, int lindex, void* pvAspect, [Optional] winmdroot.System.Com.DVTARGETDEVICE* ptd, [Optional] winmdroot.Graphics.Gdi.HDC hicTargetDev, out winmdroot.Graphics.Gdi.LOGPALETTE* ppColorSet)
_generated\522\Windows.Win32.System_Ole_IViewObject_Extensions.g.cs (6)
23 /// <inheritdoc cref="winmdroot.System.Ole.IViewObject.Interface.Draw(winmdroot.System.Com.DVASPECT, int, void*, winmdroot.System.Com.DVTARGETDEVICE*, winmdroot.Graphics.Gdi.HDC, winmdroot.Graphics.Gdi.HDC, winmdroot.Foundation.RECTL*, winmdroot.Foundation.RECTL*, nint, nuint)"/> 24 internal static unsafe winmdroot.Foundation.HRESULT Draw(this winmdroot.System.Ole.IViewObject.Interface @this, winmdroot.System.Com.DVASPECT dwDrawAspect, int lindex, void* pvAspect, [Optional] winmdroot.System.Com.DVTARGETDEVICE* ptd, [Optional] winmdroot.Graphics.Gdi.HDC hdcTargetDev, winmdroot.Graphics.Gdi.HDC hdcDraw, [Optional] winmdroot.Foundation.RECTL? lprcBounds, [Optional] winmdroot.Foundation.RECTL? lprcWBounds, [Optional] nint pfnContinue, nuint dwContinue) 32 /// <inheritdoc cref="winmdroot.System.Ole.IViewObject.Interface.GetColorSet(winmdroot.System.Com.DVASPECT, int, void*, winmdroot.System.Com.DVTARGETDEVICE*, winmdroot.Graphics.Gdi.HDC, winmdroot.Graphics.Gdi.LOGPALETTE**)"/> 33 internal static unsafe winmdroot.Foundation.HRESULT GetColorSet(this winmdroot.System.Ole.IViewObject.Interface @this, winmdroot.System.Com.DVASPECT dwDrawAspect, int lindex, void* pvAspect, [Optional] winmdroot.System.Com.DVTARGETDEVICE* ptd, [Optional] winmdroot.Graphics.Gdi.HDC hicTargetDev, out winmdroot.Graphics.Gdi.LOGPALETTE* ppColorSet)
System\Windows\Forms\DeviceContextExtensions.cs (10)
26this HDC hdc, 43internal static void FillRectangle(this HDC hdc, Rectangle rectangle, HBRUSH hbrush) 56internal static void DrawLine(this HDC hdc, HPEN hpen, Point p1, Point p2) => 62internal static void DrawLine(this HDC hdc, HPEN hpen, int x1, int y1, int x2, int y2) => 80internal static unsafe void DrawLines(this HDC hdc, HPEN hpen, ReadOnlySpan<int> lines) 101/// Calls <see cref="PInvoke.GetNearestColor(HDC, COLORREF)"/> to get the nearest color for the given 117internal static Color FindNearestColor(this HDC hdc, Color color) 123internal static Graphics CreateGraphics(this HDC hdc) => Graphics.FromHdcInternal(hdc); 135this HDC hdc, 152internal static void FillRectangle(this HDC hdc, HBRUSH hbrush, Rectangle rectangle)
System\Windows\Forms\DeviceContextExtensions.IDeviceContextAdapter.cs (2)
14public HDC GetHdc() => (HDC)_deviceContext.GetHdc();
Windows\Win32\PInvoke.DrawTextEx.cs (2)
8/// <inheritdoc cref="DrawTextEx(HDC, PWSTR, int, RECT*, DRAW_TEXT_FORMAT, DRAWTEXTPARAMS*)"/> 10HDC hdc,
Windows\Win32\PInvoke.FillRect.cs (2)
8/// <inheritdoc cref="FillRect(HDC, in RECT, HBRUSH)"/> 10where T : IHandle<HDC>
Windows\Win32\PInvoke.GetTextExtentPoint32.cs (2)
10/// <inheritdoc cref="GetTextExtentPoint32W(HDC, PCWSTR, int, SIZE*)"/> 11public static unsafe BOOL GetTextExtentPoint32W<T>(T hdc, string lpString, int c, Size size) where T : IHandle<HDC>
Windows\Win32\PInvoke.GetThemeFont.cs (2)
10/// <inheritdoc cref="GetThemeFont(HTHEME, HDC, int, int, int, LOGFONTW*)"/> 11public static unsafe HRESULT GetThemeFont<T>(T hTheme, HDC hdc, int iPartId, int iStateId, int iPropId, out LOGFONT pFont)
Windows\Win32\PInvoke.ImageList.cs (4)
28/// <inheritdoc cref="ImageList_Draw(HIMAGELIST, int, HDC, int, int, IMAGE_LIST_DRAW_STYLE)"/> 29public static bool Draw<T>(T himl, int i, HDC hdcDst, int x, int y, IMAGE_LIST_DRAW_STYLE fStyle) 37/// <inheritdoc cref="ImageList_DrawEx(HIMAGELIST, int, HDC, int, int, int, int, COLORREF, COLORREF, IMAGE_LIST_DRAW_STYLE)"/> 48IMAGE_LIST_DRAW_STYLE fStyle) where THIML : IHandle<HIMAGELIST> where THDC : IHandle<HDC>
Windows\Win32\PInvoke.IntersectClipRect.cs (2)
8/// <inheritdoc cref="IntersectClipRect(HDC, int, int, int, int)"/> 9public static GDI_REGION_TYPE IntersectClipRect<T>(T hdc, int left, int top, int right, int bottom) where T : IHandle<HDC>
Windows\Win32\UI\Controls\Dialogs\CHOOSEFONTW.cs (1)
56public HDC hDC;
Windows\Win32\UI\Controls\Dialogs\PRINTDLGW_32.cs (1)
24public HDC hDC;
Windows\Win32\UI\Controls\Dialogs\PRINTDLGW_64.cs (1)
120public HDC hDC;