/*HDC hdc;
hdc=::GetDC(this->m_hWnd);
::MoveToEx(hdc,pt1.x,pt1.y,NULL);
::LineTo(hdc,point.x,point.y);
::ReleaseDC(m_hWnd,hdc);*/
/*CDC *pcd=GetDC();
pcd->MoveTo(pt1);
pcd->LineTo(point);
ReleaseDC(pcd);*/
/*
CClientDC dc(this->GetParent());
dc.MoveTo(pt1);
dc.LineTo(point);*/
/*CWindowDC dc(this);
CPen pen(PS_DASH,1,RGB(255,0,0));
CPen *old=dc.SelectObject(&pen);
dc.MoveTo(pt1);
dc.LineTo(point);*/
//CBrush brush(RGB(0,255,0));
/*CBitmap bitmap;
bitmap.LoadBitmap(IDB_BITMAP1);
CBrush brush(&bitmap);*/
CClientDC dc(this);
CBrush *pbrush=CBrush::FromHandle((HBRUSH)::GetStockObject(NULL_BRUSH));
CBrush *old=dc.SelectObject(pbrush);
//dc.FillRect(CRect(pt1,point),&brush);
dc.Rectangle(CRect(pt1,point));
VC里对画图设备的调用的几种方法!!