解决方案 »

  1.   

    定义一个矩形区域CRect rect;为该区域复制,然后调用rect.PtInRect(CPoint pt);pt是你的点坐标
      

  2.   

    The PtInRegion function determines whether the specified point is inside the specified region. BOOL PtInRegion(
      HRGN hrgn,  // handle to region
      int X,      // x-coordinate of point
      int Y       // y-coordinate of point
    );
      

  3.   

    CRect rct;
    CPoint pos;
    if(rct.PtInRect(pos))
    {
    }