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