コード例 #1
0
 protected override bool ReleaseHandle()
 {
     return(SafeWindowDCHandle.ReleaseDC(this.hWnd, this.handle));
 }
コード例 #2
0
        public static SafeWindowDCHandle FromDesktop()
        {
            IntPtr desktopWindow = User32.GetDesktopWindow();

            return(new SafeWindowDCHandle(desktopWindow, SafeWindowDCHandle.GetWindowDC(desktopWindow)));
        }