void CProView::OnDraw(CDC* pDC)
 CProDoc* pDoc = GetDocument();
CBitmap bitmap;

CDC dcMemory;

// Select the bitmap into the in-memory DC
CBitmap* pOldBitmap = dcMemory.SelectObject(&bitmap);

 // Find a centerpoint for the bitmap in the client area
 RECT rect;

 // Copy the bits from the in-memory DC into the on-
 // screen DC to actually do the painting. Use the centerpoint
 // we computed for the target offset.
 pDC->BitBlt(0, 0, rect.right, rect.bottom, &dcMemory,0, 0, SRCCOPY);