
This is a discussion on BitBlt OR Painting Windows within the C++ forums, part of the Application Development category; Code: HBITMAP hSkinBmp = LoadBitmap(GetModuleHandle(NULL),MAKEINTRESOURCE(IDB_BITMAP1)); HDC hdc = CreateCompatibleDC(0); HBITMAP hOldBmp = (HBITMAP)SelectObject(hdc, hSkinBmp); PAINTSTRUCT ps; BeginPaint(hwnd,&ps); BitBlt(ps.hdc, 0,0,273,209, hdc, ...
| |||||||
| 120 Online | Register | Projects | Products | Members List | Calendar | Today's Posts | Search |
| |||
| BitBlt OR Painting Windows Code: HBITMAP hSkinBmp = LoadBitmap(GetModuleHandle(NULL),MAKEINTRESOURCE(IDB_BITMAP1));
HDC hdc = CreateCompatibleDC(0);
HBITMAP hOldBmp = (HBITMAP)SelectObject(hdc, hSkinBmp);
PAINTSTRUCT ps;
BeginPaint(hwnd,&ps);
BitBlt(ps.hdc, 0,0,273,209, hdc, 0,0,SRCCOPY);
EndPaint(hwnd,&ps);
__________________ Mouse! |
![]() |
| |