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; }
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; }