Ejemplo n.º 1
0
        public bool Contains(POINT point)
        {
            if ((point.X >= this.Left) && (point.X <= this.Right))
            {
                return ((point.Y >= this.Top) && (point.Y <= this.Bottom));
            }

            return false;
        }
Ejemplo n.º 2
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;
 }