Exemplo n.º 1
0
 public HH_POPUP(IntPtr pszText)
 {
     this.cbStruct = Marshal.SizeOf(typeof(HH_POPUP));
     this.hinst = IntPtr.Zero;
     this.idString = 0;
     this.pszText = pszText;
     this.pt = new POINT();
     this.clrForeground = uint.MaxValue;
     this.clrBackground = uint.MaxValue;
     this.rcMargins = new RECT(10, 8, 10, 8); // default: RECT(-1, -1, -1, -1)
     this.pszFont = null;
 }
Exemplo n.º 2
0
        public bool Intersect(ref RECT other, out RECT intersection)
        {
            RECT e;

            if (((e.Right = (this.Right < other.Right) ? this.Right : other.Right) >= (e.Left = (this.Left > other.Left) ? this.Left : other.Left)) && ((e.Bottom = (this.Bottom < other.Bottom) ? this.Bottom : other.Bottom) >= (e.Top = (this.Top > other.Top) ? this.Top : other.Top)))
            {
                intersection = e;
                return true;
            }

            intersection = new RECT();
            return false;
        }