2 writes to mirrordc
System.Windows.Forms (2)
winforms\Managed\System\WinForms\ErrorProvider.cs (2)
1031
mirrordc
= DeviceContext.FromHdc(hdc);
1053
mirrordc
= null;
19 references to mirrordc
System.Windows.Forms (19)
winforms\Managed\System\WinForms\ErrorProvider.cs (19)
1008
Debug.Assert(
mirrordc
== null, "Why is mirrordc non-null?");
1009
if (
mirrordc
!= null) {
1010
mirrordc
.Dispose();
1029
Debug.Assert(
mirrordc
== null, "Why is mirrordc non-null? Did you not call RestoreMirrorDC?");
1032
if (parent.IsMirrored &&
mirrordc
!= null) {
1033
mirrordc
.SaveHdc();
1034
mirrordcExtent =
mirrordc
.ViewportExtent;
1035
mirrordcOrigin =
mirrordc
.ViewportOrigin;
1037
mirrordcMode =
mirrordc
.SetMapMode(DeviceContextMapMode.Anisotropic);
1038
mirrordc
.ViewportExtent = new Size(-(mirrordcExtent.Width), mirrordcExtent.Height);
1039
mirrordc
.ViewportOrigin = new Point(mirrordcOrigin.X + originOffset, mirrordcOrigin.Y);
1045
if (parent.IsMirrored &&
mirrordc
!= null) {
1046
mirrordc
.ViewportExtent = mirrordcExtent;
1047
mirrordc
.ViewportOrigin = mirrordcOrigin;
1048
mirrordc
.SetMapMode(mirrordcMode);
1049
mirrordc
.RestoreHdc();
1050
mirrordc
.Dispose();
1074
SafeNativeMethods.DrawIconEx(new HandleRef(this,
mirrordc
.Hdc), bounds.X - windowBounds.X, bounds.Y - windowBounds.Y, new HandleRef(provider.Region, provider.Region.IconHandle), bounds.Width, bounds.Height, 0, NativeMethods.NullHandleRef, NativeMethods.DI_NORMAL);
1248
Graphics graphics = Graphics.FromHdcInternal(
mirrordc
.Hdc);