求助。请问这么这么不能显示图像!
void CTuPiaoDlg::Huatu(void){
CRect rect;
this->GetWindowRect(&rect);
CPaintDC dcd(this);
CDC dc;
CBitmap bmp;
dc.CreateCompatibleDC(&dcd);
bmp.CreateCompatibleBitmap(&dcd,rect.Width(),rect.Height());
dc.SelectObject(&bmp);
dc.FillSolidRect(rect,dcd.GetBkColor());
dc.DrawIcon(x,y,m_hIcon);
//dcd.DrawIcon(x,y,m_hIcon);
this->InvalidateRect(NULL);
dcd.BitBlt(0,0,rect.Width(),rect.Height(),&dc,0,0,SRCCOPY);
dc.DeleteDC();
x+=5;
}