Esempio n. 1
0
 public static extern bool GetWindowRect(IntPtr hWnd, ref RECT lpRect);
Esempio n. 2
0
 public static extern bool AdjustWindowRectEx(ref RECT lpRect, int dwStyle, bool bMenu, int dwExStyle);
Esempio n. 3
0
 public static extern bool RedrawWindow(HandleRef hwnd, ref RECT rcUpdate, HandleRef hrgnUpdate, int flags);
Esempio n. 4
0
 public static extern bool PtInRect(ref RECT lprc, POINT pt);
Esempio n. 5
0
 public static extern bool GetClientRect(IntPtr hWnd, ref RECT r);
Esempio n. 6
0
 public static extern bool GetClientRect(int hWnd, ref RECT lpRect);
Esempio n. 7
0
 public static void InvertRect(Graphics graphics, Rectangle rectangle)
 {
     IntPtr hdc = graphics.GetHdc();
     RECT rect = new RECT(rectangle.X, rectangle.Y, rectangle.Right, rectangle.Bottom);
     NativeMethods.InvertRect(hdc, ref rect);
     graphics.ReleaseHdc();
 }