Details of the scope of PtInRect
CRect :: PtInRect function can be used to determine whether a given point within the rectangular area is located, the MSDN but did not give a detailed boundary cases, we are given below:
rect.PtInRect (point); i.e. a rectangular box RECT, it is determined whether the dot point, the result is:
If rect.left <= point.x <rect.right and rect.top <= point.y <rect.bottom considered point within the rect, or vice versa. Here we are emphasizing a closed left and right open range.