DestroyWindow() 개인적인 메소드

private DestroyWindow ( IntPtr hWnd ) : bool
hWnd IntPtr
리턴 bool
        /// <summary>
        /// Destroys the render context provider instance.
        /// </summary>
        protected override void DisposeUnmanagedResources()
        {
            //	Release the device context.
            Win32.ReleaseDC(windowHandle, this.DeviceContextHandle);

            //	Destroy the window.
            Win32.DestroyWindow(windowHandle);

            //	Call the base, which will delete the render context handle.
            base.DisposeUnmanagedResources();
        }
예제 #2
0
        /// <summary>
        /// Destroys the render context provider instance.
        /// </summary>
        public override void Destroy()
        {
            //	Release the device context.
            Win32.ReleaseDC(windowHandle, DeviceContextHandle);

            //	Destroy the window.
            Win32.DestroyWindow(windowHandle);

            //	Call the base, which will delete the render context handle.
            base.Destroy();
        }
        /// <summary>
        /// Destroys the render context provider instance.
        /// </summary>
        protected override void DisposeUnmanagedResources()
        {
            //	Release the device context.
            Win32.ReleaseDC(windowHandle, this.DeviceContextHandle);

            //	Destroy the window.
            Win32.DestroyWindow(windowHandle);

            // If we have a render context, destroy it.
            if (this.RenderContextHandle != IntPtr.Zero)
            {
                Win32.wglDeleteContext(this.RenderContextHandle);
                this.RenderContextHandle = IntPtr.Zero;
            }
        }