private bool CheckOverThumb(int x, int y) { Api.RECT r = new Api.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; Api.POINT p = new Api.POINT(); p.x = x; p.y = y; return(Api.PtInRect(ref r, p)); }
private bool CheckOverThumb(int x, int y) { Api.RECT r = new Api.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; Api.POINT p = new Api.POINT(); p.x = x; p.y = y; return (Api.PtInRect(ref r, p)); }