Exemplo n.º 1
0
 public static extern bool GetWindowRect(IntPtr hWnd, ref RECT lpRect);
Exemplo n.º 2
0
 public static extern bool AdjustWindowRectEx(ref RECT lpRect, int dwStyle, bool bMenu, int dwExStyle);
Exemplo n.º 3
0
 public static extern bool RedrawWindow(HandleRef hwnd, ref RECT rcUpdate, HandleRef hrgnUpdate, int flags);
Exemplo n.º 4
0
 public static extern bool PtInRect(ref RECT lprc, POINT pt);
Exemplo n.º 5
0
 public static extern bool GetClientRect(IntPtr hWnd, ref RECT r);
Exemplo n.º 6
0
 public static extern bool GetClientRect(int hWnd, ref RECT lpRect);
Exemplo 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();
 }