Guest User

Untitled

a guest
Jan 24th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. hdc = BeginPaint(hWnd, &ps);
  2. hBitmap = LoadImage(NULL, L"Untitled.bmp",
  3. IMAGE_BITMAP, 0,0, LR_LOADFROMFILE);
  4. GetObject(hBitmap,sizeof(BITMAP), &Bitmap);
  5. hCompatibleDC = CreateCompatibleDC(hdc);
  6. hOldBitmap = SelectObject(hCompatibleDC,hBitmap);
  7. GetClientRect(hWnd, &Rect);
  8. StretchBlt(hdc,0,0,Rect.right,Rect.bottom,
  9. hCompatibleDC,0,0, Bitmap.bmWidth,
  10. Bitmap.bmHeight,SRCCOPY);
  11. SelectObject(hCompatibleDC,hOldBitmap);
  12. DeleteObject(hBitmap);
  13. DeleteDC(hCompatibleDC);
Add Comment
Please, Sign In to add comment