Ejemplo n.º 1
0
 protected virtual void DestroyWindowCore()
 {
     if (this.handle != IntPtr.Zero)
     {
         if (!NativeMethodsUltimate.DestroyWindow(this.handle))
         {
             HwndWrapper.lastDestroyWindowError = Marshal.GetLastWin32Error();
             HwndWrapper.failedDestroyWindows  += 1L;
         }
         this.handle = IntPtr.Zero;
     }
 }