//X¡¢YÊÇÁ½¸ö¶þάÊý×飬·Ö±ð±£´æX£¬YÖµ
CDC* pDC=GetDC();
for(i=0;i<M;i++)
{
for(j=0;j<N;j++)
{
/*&raquo;&shy;&micro;&atilde;&sup3;&Igrave;&ETH;ò
//str.Format("%d,%d",i,j);
//pDC->TextOut(150*X[j]+360,150*Y[j]+360,str);
pDC->SetPixel(CPoint(150*X[j]+380,150*Y[j]+360),RGB(0,0,255));
pDC->SetPixel(CPoint(150*X[j]+380-1,150*Y[j]+360-1),RGB(0,0,255));
pDC->SetPixel(CPoint(150*X[j]+380+1,150*Y[j]+360+1),RGB(0,0,255));
pDC->SetPixel(CPoint(150*X[j]+380+1,150*Y[j]+360-1),RGB(0,0,255));
pDC->SetPixel(CPoint(150*X[j]+380-1,150*Y[j]+360+1),RGB(0,0,255));
/**/
//&Iuml;&Acirc;&Atilde;&aelig;&Ecirc;&Ccedil;&raquo;&shy;&Iuml;&szlig;&iexcl;&pound;&micro;&Atilde;&micro;&frac12;&Ograve;&raquo;&cedil;&ouml;&Iacute;&oslash;&cedil;&ntilde;
if(i-1 >=0)
{
pDC->MoveTo(CPoint(150*X[j]+380,150*Y[j]+360));
pDC->LineTo(CPoint(150*X[i-1][j]+380,150*Y[i-1][j]+360));
}
if(i+1 <M)
{
pDC->MoveTo(CPoint(150*X[j]+380,150*Y[j]+360));
pDC->LineTo(CPoint(150*X[i+1][j]+380,150*Y[i+1][j]+360));
}
if(j-1>=0)
{
pDC->MoveTo(CPoint(150*X[j]+380,150*Y[j]+360));
pDC->LineTo(CPoint(150*X[j-1]+380,150*Y[j-1]+360));
}
if(j+1<N)
{
pDC->MoveTo(CPoint(150*X[j]+380,150*Y[j]+360));
pDC->LineTo(CPoint(150*X[j+1]+380,150*Y[j+1]+360));
}
}
}
ReleaseDC(pDC);