14 references to GetDeviceCaps
System.Windows.Forms (14)
winforms\Managed\System\WinForms\AxHost.cs (2)
1455
logPixelsX = UnsafeNativeMethods.
GetDeviceCaps
(new HandleRef(null, hDC), NativeMethods.LOGPIXELSX);
1456
logPixelsY = UnsafeNativeMethods.
GetDeviceCaps
(new HandleRef(null, hDC), NativeMethods.LOGPIXELSY);
winforms\Managed\System\WinForms\Control.cs (4)
16510
logPixels.X = UnsafeNativeMethods.
GetDeviceCaps
(new HandleRef(null, dc), NativeMethods.LOGPIXELSX);
16511
logPixels.Y = UnsafeNativeMethods.
GetDeviceCaps
(new HandleRef(null, dc), NativeMethods.LOGPIXELSY);
19250
int planes = UnsafeNativeMethods.
GetDeviceCaps
(hBitmapDC, NativeMethods.PLANES);
19251
int bitsPixel = UnsafeNativeMethods.
GetDeviceCaps
(hBitmapDC, NativeMethods.BITSPIXEL);
winforms\Managed\System\WinForms\Printing\PrintPreviewControl.cs (2)
427
screendpi = new Point(UnsafeNativeMethods.
GetDeviceCaps
(new HandleRef(tempGraphics, dc), NativeMethods.LOGPIXELSX),
428
UnsafeNativeMethods.
GetDeviceCaps
(new HandleRef(tempGraphics, dc), NativeMethods.LOGPIXELSY));
winforms\Managed\System\WinForms\RichTextBox.cs (2)
2953
logPixelsX = UnsafeNativeMethods.
GetDeviceCaps
(new HandleRef(null, hDC), NativeMethods.LOGPIXELSX);
2954
logPixelsY = UnsafeNativeMethods.
GetDeviceCaps
(new HandleRef(null, hDC), NativeMethods.LOGPIXELSY);
winforms\Managed\System\WinForms\Screen.cs (2)
104
this.bitDepth = UnsafeNativeMethods.
GetDeviceCaps
(new HandleRef(null, screenDC), NativeMethods.BITSPIXEL);
105
this.bitDepth *= UnsafeNativeMethods.
GetDeviceCaps
(new HandleRef(null, screenDC), NativeMethods.PLANES);
winforms\Managed\System\WinForms\WebBrowserHelper.cs (2)
119
logPixelsX = UnsafeNativeMethods.
GetDeviceCaps
(new HandleRef(null, hDC), NativeMethods.LOGPIXELSX);
137
logPixelsY = UnsafeNativeMethods.
GetDeviceCaps
(new HandleRef(null, hDC), NativeMethods.LOGPIXELSY);