NewTOAPIA.Drawing.GDI.GDIContext.CreateForWindowClientArea C# (CSharp) Метод

CreateForWindowClientArea() публичный статический Метод

public static CreateForWindowClientArea ( IntPtr hWnd ) : GDIContext
hWnd System.IntPtr
Результат GDIContext
        public static GDIContext CreateForWindowClientArea(IntPtr hWnd)
        {
            IntPtr hdc = IntPtr.Zero;

            hdc = User32.GetDC(hWnd);
            //hdc = User32.GetDCEx(hWnd, IntPtr.Zero, DeviceContextValues.Window);
            GDIContext newContext = new GDIContext(hdc, false);

            return newContext;
        }
        #endregion