Beispiel #1
0
 public PAINTSTRUCT(int size = 32)
 {
     HDC         = IntPtr.Zero;
     fErase      = false;
     rcPaint     = new Win32Rectangle();
     fRestore    = false;
     fIncUpdate  = false;
     rgbReserved = new byte[size];
 }
Beispiel #2
0
        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);
        }
Beispiel #3
0
        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);
        }
Beispiel #4
0
 internal static extern bool AdjustWindowRectEx(
     ref Win32Rectangle lpRect,
     WindowStyle dwStyle,
     [MarshalAs(UnmanagedType.Bool)] bool bMenu,
     ExtendedWindowStyle dwExStyle);