1 write to hdc
System.Workflow.ComponentModel (1)
AuthoringOM\Design\DesignerHelpers.cs (1)
917
this.
hdc
= new HandleRef(this, this.graphics.GetHdc());
24 references to hdc
System.Workflow.ComponentModel (24)
AuthoringOM\Design\DesignerHelpers.cs (24)
920
this.oldGraphicsMode = NativeMethods.SetGraphicsMode(this.
hdc
, NativeMethods.GM_ADVANCED);
925
int result = NativeMethods.SetWorldTransform(this.
hdc
, xform);
929
IntPtr handle = NativeMethods.GetCurrentObject(this.
hdc
, NativeMethods.OBJ_PEN);
935
handle = NativeMethods.GetCurrentObject(this.
hdc
, NativeMethods.OBJ_EXTPEN);
941
handle = NativeMethods.GetCurrentObject(this.
hdc
, NativeMethods.OBJ_BRUSH);
953
IntPtr objectPtr = NativeMethods.SelectObject(this.
hdc
, this.oldPen);
961
objectPtr = NativeMethods.SelectObject(this.
hdc
, this.oldPenEx);
969
objectPtr = NativeMethods.SelectObject(this.
hdc
, this.oldBrush);
977
int result = NativeMethods.SetWorldTransform(this.
hdc
, new NativeMethods.XFORM());
985
result = NativeMethods.SetGraphicsMode(this.
hdc
, this.oldGraphicsMode);
1030
IntPtr objectPtr = NativeMethods.SelectObject(this.
hdc
, majorGridPen.Handle);
1038
if (!NativeMethods.MoveToEx(this.
hdc
, gridCoOrd, viewableRectangle.Top + 1, null))
1041
if (!NativeMethods.LineTo(this.
hdc
, gridCoOrd, viewableRectangle.Bottom - 1))
1047
objectPtr = NativeMethods.SelectObject(this.
hdc
, minorGridPen.Handle);
1051
if (!NativeMethods.MoveToEx(this.
hdc
, gridCoOrd + gridUnit.Width / 2, viewableRectangle.Top + 1, null))
1054
if (!NativeMethods.LineTo(this.
hdc
, gridCoOrd + gridUnit.Width / 2, viewableRectangle.Bottom - 1))
1057
objectPtr = NativeMethods.SelectObject(this.
hdc
, majorGridPen.Handle);
1067
if (!NativeMethods.MoveToEx(this.
hdc
, viewableRectangle.Left + 1, gridCoOrd, null))
1070
if (!NativeMethods.LineTo(this.
hdc
, viewableRectangle.Right - 1, gridCoOrd))
1076
objectPtr = NativeMethods.SelectObject(this.
hdc
, minorGridPen.Handle);
1080
if (!NativeMethods.MoveToEx(this.
hdc
, viewableRectangle.Left + 1, gridCoOrd + gridUnit.Height / 2, null))
1083
if (!NativeMethods.LineTo(this.
hdc
, viewableRectangle.Right - 1, gridCoOrd + gridUnit.Height / 2))
1086
objectPtr = NativeMethods.SelectObject(this.
hdc
, majorGridPen.Handle);
1095
IntPtr objectPtr = NativeMethods.SelectObject(this.
hdc
, this.oldPen);