1 void CActOView::OnDraw(CDC* pDC)
 2 {
 3     CActODoc* pDoc = GetDocument();
 4     ASSERT_VALID(pDoc);
 5     // TODO: add draw code for native data here
 6     CClientDC dc(this);
 7     CDC *mdc=new CDC;
 8     mdc->CreateCompatibleDC(&dc);
 9     CBitmap bitmap;
10     bitmap.LoadBitmap(IDB_BITMAP1);
11     mdc->SelectObject(bitmap);
12     CRect rect;
13     GetClientRect(&rect);
14     pDC->BitBlt(0,0,rect.right,rect.bottom,mdc,0,0,SRCCOPY);
15     delete mdc;
16 }

相关文章:

  • 2021-11-02
  • 2021-06-22
  • 2022-12-23
  • 2022-12-23
  • 2021-11-24
  • 2022-12-23
  • 2022-01-25
猜你喜欢
  • 2022-12-23
  • 2021-07-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案