Exemplo n.º 1
0
 protected override bool ReleaseHandle()
 {
     return(SafeWindowDCHandle.ReleaseDC(this.hWnd, this.handle));
 }
Exemplo n.º 2
0
        public static SafeWindowDCHandle FromDesktop()
        {
            IntPtr desktopWindow = User32.GetDesktopWindow();

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