BOOL CZLLKView::PreCreateWindow(CREATESTRUCT& cs)
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
bitmap1.LoadBitmap(IDB_BITMAP_FOREFACE);
bitmap2.LoadBitmap(IDB_BITMAP_FACE);
return CView::PreCreateWindow(cs);
}/////////////////////////////////////////////////////////////////////////////
// CZLLKView drawingvoid CZLLKView::OnDraw(CDC* pDC)
{
CZLLKDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here CRect rcBlock;
rcBlock.SetRect(0,0,660,640);
pDC->FillSolidRect(&rcBlock,RGB(0,0,250));
CDC dcMemory1,dcMemory2;
dcMemory1.CreateCompatibleDC(pDC);
dcMemory1.SelectObject(&bitmap1);
dcMemory2.CreateCompatibleDC(pDC);
dcMemory2.SelectObject(&bitmap2);
就象这个,应该在哪Delete呢
{
// TODO: Modify the Window class or styles here by modifying
// the CREATESTRUCT cs
bitmap1.LoadBitmap(IDB_BITMAP_FOREFACE);
bitmap2.LoadBitmap(IDB_BITMAP_FACE);
return CView::PreCreateWindow(cs);
}/////////////////////////////////////////////////////////////////////////////
// CZLLKView drawingvoid CZLLKView::OnDraw(CDC* pDC)
{
CZLLKDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here CRect rcBlock;
rcBlock.SetRect(0,0,660,640);
pDC->FillSolidRect(&rcBlock,RGB(0,0,250));
CDC dcMemory1,dcMemory2;
dcMemory1.CreateCompatibleDC(pDC);
dcMemory1.SelectObject(&bitmap1);
dcMemory2.CreateCompatibleDC(pDC);
dcMemory2.SelectObject(&bitmap2);
就象这个,应该在哪Delete呢
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货