win32 界面
作者:互联网
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; }
标签:hbm,ps,界面,bminfo,memdc,dc,win32,HDC 来源: https://www.cnblogs.com/hshy/p/11640835.html