void CE3View::OnPrepareDC(CDC* pDC, CPrintInfo* pInfo) //更改了显示模式00点在中心位置
{
// TODO: Add your specialized code here and/or call the base class
CRect rect;
// TODO: Add your specialized code here and/or call the base class
        pDC->SetMapMode (MM_LOMETRIC);
GetClientRect(rect);
pDC->SetViewportOrg(rect.Width()/2, rect.Height()/2);
CView::OnPrepareDC(pDC, pInfo);
}
//
void CE3View::OnDraw(CDC* pDC)
{
CE3Doc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
 
CDC   MemDC;   
CBitmap   bitmap;   
if(!bitmap.LoadBitmap(IDB_BITMAP1))   //加载位图
return   ;   
MemDC.CreateCompatibleDC(pDC);   
CBitmap*   pOldbit   =   MemDC.SelectObject(&bitmap);   
CRect   rect;   
GetClientRect(&rect);   
pDC->BitBlt(0,0,rect.Width(),rect.Height(),&MemDC,0,0,SRCCOPY);   //拷贝
MemDC.SelectObject(pOldbit);   
}
///这样的执行结果就是位图变的很小,MM_LOMETRIC的模式下单位变成了0.1毫米所以导致位图变形,因为位图的单位是像素点。拷贝的图形位置也不能正确的在0,0的位置显示。希望高手帮我找找原因。帮我想想办法这样在MM_LOMETRIC模式下能否把位图原样显示出来。还有贴图位置定位问题!