49 references to Hdc
System.Windows.Forms (49)
misc\GDI\DeviceContext.cs (12)
194
IntPtr currentPen = IntUnsafeNativeMethods.SelectObject(new HandleRef(this, this.
Hdc
), new HandleRef( this, hInitialPen));
202
IntPtr currentBrush = IntUnsafeNativeMethods.SelectObject(new HandleRef(this, this.
Hdc
), new HandleRef( this, hInitialBrush));
210
IntPtr currentBmp = IntUnsafeNativeMethods.SelectObject(new HandleRef(this, this.
Hdc
), new HandleRef( this, hInitialBmp));
479
return (DeviceContextGraphicsMode) IntUnsafeNativeMethods.GetGraphicsMode( new HandleRef( this, this.
Hdc
) );
496
return (DeviceContextGraphicsMode) IntUnsafeNativeMethods.SetGraphicsMode( new HandleRef( this, this.
Hdc
), unchecked((int) newMode));
567
HandleRef hdc = new HandleRef( this, this.
Hdc
);
605
HandleRef hdc = new HandleRef(this, this.
Hdc
);
626
int result = IntUnsafeNativeMethods.GetClipRgn(new HandleRef( this, this.
Hdc
), new HandleRef(clip, clip.HRegion));
649
IntUnsafeNativeMethods.OffsetViewportOrgEx( new HandleRef( this, this.
Hdc
), dx, dy, orgn );
671
return other.
Hdc
== this.
Hdc
;
681
return this.
Hdc
.GetHashCode();
misc\GDI\DeviceContext2.cs (22)
66
return ColorTranslator.FromWin32(IntUnsafeNativeMethods.GetBkColor( new HandleRef( this, this.
Hdc
)));
81
return ColorTranslator.FromWin32(IntUnsafeNativeMethods.SetBkColor( new HandleRef( this, this.
Hdc
), ColorTranslator.ToWin32(newColor)));
91
return (DeviceContextBackgroundMode) IntUnsafeNativeMethods.GetBkMode( new HandleRef( this, this.
Hdc
) );
106
return (DeviceContextBackgroundMode) IntUnsafeNativeMethods.SetBkMode(new HandleRef(this, this.
Hdc
), (int) newMode);
117
return (DeviceContextBinaryRasterOperationFlags) IntUnsafeNativeMethods.GetROP2( new HandleRef( this, this.
Hdc
) );
135
return (DeviceContextBinaryRasterOperationFlags) IntUnsafeNativeMethods.SetROP2(new HandleRef(this, this.
Hdc
), (int) rasterOperation);
209
return WindowsFont.FromHdc( this.
Hdc
);
242
IntUnsafeNativeMethods.SelectObject(new HandleRef(this, this.
Hdc
), new HandleRef( null, hInitialFont));
311
MeasurementDCInfo.ResetIfIsMeasurementDC(this.
Hdc
);
313
IntUnsafeNativeMethods.SelectObject(new HandleRef(this, this.
Hdc
), new HandleRef( null, hInitialFont ));
323
return IntUnsafeNativeMethods.GetDeviceCaps( new HandleRef( this, this.
Hdc
), (int) capabilityIndex );
333
return (DeviceContextMapMode) IntUnsafeNativeMethods.GetMapMode( new HandleRef( this, this.
Hdc
) );
363
return (DeviceContextMapMode) IntUnsafeNativeMethods.SetMapMode( new HandleRef(this, this.
Hdc
), (int) newMode );
383
return IntUnsafeNativeMethods.SelectObject(new HandleRef(this, this.
Hdc
), new HandleRef( null, hObj));
393
return (DeviceContextTextAlignment) IntUnsafeNativeMethods.GetTextAlign( new HandleRef( this, this.
Hdc
) );
408
return (DeviceContextTextAlignment) IntUnsafeNativeMethods.SetTextAlign(new HandleRef(this, this.
Hdc
), (int) newAligment );
419
return ColorTranslator.FromWin32(IntUnsafeNativeMethods.GetTextColor( new HandleRef( this, this.
Hdc
) ));
434
return ColorTranslator.FromWin32(IntUnsafeNativeMethods.SetTextColor(new HandleRef( this, this.
Hdc
), ColorTranslator.ToWin32(newColor)));
445
IntUnsafeNativeMethods.GetViewportExtEx( new HandleRef( this, this.
Hdc
), size );
462
IntUnsafeNativeMethods.SetViewportExtEx( new HandleRef( this, this.
Hdc
), newExtent.Width, newExtent.Height, oldExtent );
475
IntUnsafeNativeMethods.GetViewportOrgEx( new HandleRef( this, this.
Hdc
), point );
491
IntUnsafeNativeMethods.SetViewportOrgEx( new HandleRef( this, this.
Hdc
), newOrigin.X, newOrigin.Y, oldOrigin );
misc\GDI\MeasurementDCInfo.cs (3)
37
return sharedGraphics != null && sharedGraphics.DeviceContext != null && sharedGraphics.DeviceContext.
Hdc
== dc.
Hdc
;
89
if (sharedGraphics != null && sharedGraphics.DeviceContext != null && sharedGraphics.DeviceContext.
Hdc
== hdc) {
misc\GDI\WindowsGraphics.cs (2)
283
this.graphics.ReleaseHdcInternal(this.dc.
Hdc
);
307
return this.dc.
Hdc
;
misc\GDI\WindowsGraphics2.cs (10)
78
HandleRef hdc = new HandleRef( this.dc, this.dc.
Hdc
);
108
HandleRef hdc = new HandleRef( this.dc, this.dc.
Hdc
);
211
HandleRef hdc = new HandleRef( this.dc, this.dc.
Hdc
);
298
HandleRef hdc = new HandleRef(null, this.dc.
Hdc
);
385
HandleRef hdc = new HandleRef(null, this.dc.
Hdc
);
487
HandleRef hdc = new HandleRef(null, this.dc.
Hdc
);
588
HandleRef hdc = new HandleRef(this.dc, this.dc.
Hdc
);
626
HandleRef hdc = new HandleRef(this.dc, this.dc.
Hdc
);
658
HandleRef hdc = new HandleRef(this.dc, this.dc.
Hdc
);
703
HandleRef hdc = new HandleRef( this.dc, this.dc.
Hdc
);