16,548
社区成员




在OnInitDialog()中;
CBitmap bitmap;
bitmap.LoadBitmap(IDB_BITMAP1);
bitmap.GetBitmap(&bmp);
CDC *dc=GetDC();
//CClientDC dc(this);
m_dc.CreateCompatibleDC(dc);
m_dc.SelectObject(&bitmap);
在OnEraseBkgnd(CDC* pDC)中添加的
{
CRect rect;
GetClientRect(&rect); pDC->StretchBlt(0,0,rect.Width(),rect.Height(),&m_dc,0,0,bmp.bmWidth,bmp.bmHeight,SRCCOPY);
return TRUE;