コード例 #1
0
            private void Disposing(bool disposing)
            {
                if (hWnd != null)
                {
                    //remove this from the clipboard chain
                    NativeMethods.ChangeClipboardChain(hWnd, hWndNextViewer);
                    hWnd = IntPtr.Zero;
                }

                if (disposing)
                {
                    //destroy the handle
                    if (Handle != IntPtr.Zero)
                    {
                        DestroyHandle();
                    }
                }
            }