public PAINTSTRUCT(int size = 32) { HDC = IntPtr.Zero; fErase = false; rcPaint = new Win32Rectangle(); fRestore = false; fIncUpdate = false; rgbReserved = new byte[size]; }
internal static Win32Rectangle From(Rectangle value) { Win32Rectangle rect = new Win32Rectangle(); rect.left = value.Left; rect.right = value.Right; rect.top = value.Top; rect.bottom = value.Bottom; return(rect); }
internal static Win32Rectangle From(Size value) { Win32Rectangle rect = new Win32Rectangle(); rect.left = 0; rect.right = value.Width; rect.top = 0; rect.bottom = value.Height; return(rect); }
internal static extern bool AdjustWindowRectEx( ref Win32Rectangle lpRect, WindowStyle dwStyle, [MarshalAs(UnmanagedType.Bool)] bool bMenu, ExtendedWindowStyle dwExStyle);