win32 界面 背景图片

2021-01-30 22:16

阅读:548

标签:target   size   resource   div   creat   BMI   cpp   lan   hbm   

case WM_PAINT:
{
HBITMAP	hbm;
BITMAP	bminfo;
hbm = LoadBitmap(GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BITMAP1));
GetObject(hbm, sizeof(bminfo), &bminfo);

PAINTSTRUCT	ps;
HDC dc = BeginPaint(hwnd, &ps);

HDC	memdc = CreateCompatibleDC(dc);

SelectObject(memdc, hbm);
BitBlt(dc,0,0,bminfo.bmWidth,bminfo.bmHeight,memdc,0,0,SRCCOPY);

DeleteDC(memdc);

EndPaint(hwnd, &ps);
break;
}

  https://www.cnblogs.com/gakusei/articles/1585212.html

win32 界面 背景图片

标签:target   size   resource   div   creat   BMI   cpp   lan   hbm   

原文地址:https://www.cnblogs.com/hshy/p/11640835.html


评论


亲,登录后才可以留言!