private DeviceContext(IntPtr hWnd)
 {
     this.hWnd = (IntPtr) (-1);
     this.hWnd = hWnd;
     this.dcType = System.Windows.Forms.Internal.DeviceContextType.Display;
     DeviceContexts.AddDeviceContext(this);
 }
Exemple #2
0
 private DeviceContext(IntPtr hWnd)
 {
     this.hWnd   = (IntPtr)(-1);
     this.hWnd   = hWnd;
     this.dcType = System.Windows.Forms.Internal.DeviceContextType.Display;
     DeviceContexts.AddDeviceContext(this);
 }
 private DeviceContext(IntPtr hDC, System.Windows.Forms.Internal.DeviceContextType dcType)
 {
     this.hWnd = (IntPtr) (-1);
     this.hDC = hDC;
     this.dcType = dcType;
     this.CacheInitialState();
     DeviceContexts.AddDeviceContext(this);
     if (dcType == System.Windows.Forms.Internal.DeviceContextType.Display)
     {
         this.hWnd = IntUnsafeNativeMethods.WindowFromDC(new HandleRef(this, this.hDC));
     }
 }
Exemple #4
0
 private DeviceContext(IntPtr hDC, System.Windows.Forms.Internal.DeviceContextType dcType)
 {
     this.hWnd   = (IntPtr)(-1);
     this.hDC    = hDC;
     this.dcType = dcType;
     this.CacheInitialState();
     DeviceContexts.AddDeviceContext(this);
     if (dcType == System.Windows.Forms.Internal.DeviceContextType.Display)
     {
         this.hWnd = IntUnsafeNativeMethods.WindowFromDC(new HandleRef(this, this.hDC));
     }
 }