64,644
社区成员
发帖
与我相关
我的任务
分享
hdc=BeginPaint(hwnd,&ps);
hBitmap=LoadBitmap(hInstance,MAKEINTRESOURCE(IDB_BITMAP2));
GetObject(hBitmap,sizeof(BITMAP),&bitmap);
cxSource=bitmap.bmWidth;
cySource=bitmap.bmHeight;
hdcBitmap=CreateCompatibleDC(NULL);
SelectObject(hdcBitmap,hBitmap);
StretchBlt(hdc,cx,cy,cxSource,cySource,hdcBitmap,0,0,cxSource,cySource,NULL);
DeleteDC(hdcBitmap);
EndPaint(hwnd,&ps);