internal TOOLINFO(int flags) { this.cbSize = Marshal.SizeOf(typeof(TOOLINFO)); this.uFlags = flags; this.hwnd = IntPtr.Zero; this.uId = IntPtr.Zero; this.rect = new RECT(0, 0, 0, 0); this.hinst = IntPtr.Zero; this.lpszText = IntPtr.Zero; this.lParam = IntPtr.Zero; }
public static extern int SendMessage( IntPtr hWnd, int msg, int wParam, ref RECT lParam);
public static extern bool ValidateRect(IntPtr hWnd, ref RECT lpRect);
public static extern int RtlMoveMemory( ref POINT destination, ref RECT Source, int length);
public static extern int OffsetRect( ref RECT lpRect, int x, int y);
public static extern bool GetWindowRect( IntPtr hWnd, ref RECT lpRect);
public static extern bool GetClientRect( IntPtr hWnd, ref RECT r);
public static extern bool AdjustWindowRectEx( ref RECT lpRect, int dwStyle, bool bMenu, int dwExStyle);