private bool CheckOverThumb(int x, int y) { ApiWin32.RECT r = new ApiWin32.RECT(); r.Left = BLUE_Thumb.Left; r.Top = BLUE_Thumb.Top; r.Right = r.Left + BLUE_Thumb.Width; r.Bottom = r.Top + BLUE_Thumb.Height; ApiWin32.POINT p = new ApiWin32.POINT(); p.x = x; p.y = y; return(ApiWin32.PtInRect(ref r, p)); }
private void SendNotification() { if (ValueChanged != null) { ValueChanged(this, new EventArgs()); } else { ApiWin32.SendMessage(ApiWin32.GetForegroundWindow(), ApiWin32.WM_COMMAND, (uint)this.Handle, (int)this.Handle); } }