CDC BmpDC;
BmpDC.m_hDC = CreateDC(_T("DISPLAY"),NULL,NULL,NULL);
CDC memDC;
memDC.m_hDC = CreateCompatibleDC(BmpDC.m_hDC);
m_HBitmap=CreateCompatibleBitmap(BmpDC.m_hDC , (m_structInfo.PaperWidth-2)*10,(m_structInfo.PaperHeight-2)*10/2+10); SelectObject(memDC.m_hDC,hbp);CRect rect ;m_b.GetWindowRect( &rect ) ;::StretchBlt( tmpdc , 0 , 0 , rect.Width() , rect.Height() , memdc , 0 , 0 , BM.bmWidth , BM.bmHeight , SRCCOPY ) ;::BitBlt( dc , 0 , 0 , rect.Width() , rect.Height() , tmpdc , 0 , 0 , SRCCOPY ) ;