|
-
April 23rd, 2006, 11:17 PM
#1
what s the problem with my code?
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|