void CEasySizeDlg::OnLButtonDown(UINT nFlags, CPoint point)
{
CRgn rgn;
CPoint VertexPoint[3];
// To Create The Triangle Window.
VertexPoint[0].x = 100; VertexPoint[0].y = 0;
VertexPoint[1].x = 0; VertexPoint[1].y = 100;
VertexPoint[2].x = 100; VertexPoint[2].y = 100;
rgn.CreatePolygonRgn(VertexPoint, 3, ALTERNATE);

if(PtInRegion(rgn,point.x,point.y)){
MessageBox(_T("test"));
}
CDialogEx::OnLButtonDown(nFlags, point);

}