Пример #1
0
 void IDeviceContext.ReleaseHdc()
 {
     if ((this.hDC != IntPtr.Zero) && (this.dcType == System.Windows.Forms.Internal.DeviceContextType.Display))
     {
         IntUnsafeNativeMethods.ReleaseDC(new HandleRef(this, this.hWnd), new HandleRef(this, this.hDC));
         this.hDC = IntPtr.Zero;
     }
 }