1 write to HDC
System.Windows.Forms (1)
System\Windows\Forms\Rendering\ScreenDcCache.ScreenDcScope.cs (1)
23HDC = hdc;
10 references to HDC
System.Windows.Forms (10)
System\Windows\Forms\Controls\ComboBox\ComboBox.cs (1)
821textExtent = screen.HDC.GetTextExtent("0", hfont);
System\Windows\Forms\Controls\Labels\Label.cs (1)
1069requiredSize = screen.HDC.GetTextExtent("0", hfont);
System\Windows\Forms\Controls\MonthCalendar\MonthCalendar.cs (1)
1196textExtent = screen.HDC.GetTextExtent(DateTime.Now.ToShortDateString(), hfont);
System\Windows\Forms\Rendering\FontCache.Data.cs (1)
39HDC hdc = screenDC.HDC;
System\Windows\Forms\Rendering\GdiCache.cs (2)
61ArgumentValidation.ThrowIfNull(scope.HDC, "hdc"); 63OBJ_TYPE type = (OBJ_TYPE)PInvokeCore.GetObjectType(scope.HDC);
System\Windows\Forms\Rendering\GdiCache.ScreenGraphicsScope.cs (1)
26Graphics = scope.HDC.CreateGraphics();
System\Windows\Forms\Rendering\ScreenDcCache.ScreenDcScope.cs (2)
26public static implicit operator HDC(in ScreenDcScope scope) => scope.HDC; 30_cache.Release(HDC);
System\Windows\Forms\Rendering\TextRenderer.cs (1)
523return screen.HDC.MeasureText(text, hfont, proposedSize, flags);