hi guys:
everbody knows how to displaying a bitmap to screen.we just need a memory dc and a display dc. and i try to simulate this on OnPaint and it failed to work. anyone knows why? plz . ty so much

CXXX::OnPaint()
{
CPaintDC dc(this);//default code

CDC memdc;
memdc.CreateCompatibleDC(&dc);

memdc.TextOut(0,0,"hello");

dc.BitBlt(0,0,100,30,&memdc,0,0,SRCCOPY);

}


have a nice day