|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
本帖最后由 孤独一掷 于 2017-12-11 22:17 编辑
图片显示不出来啊
case WM_PAINT:
{
PAINTSTRUCT ps;
HDC hdc = BeginPaint(hWnd, &ps);
RECT rect;
GetClientRect(hWnd, &rect);
int weight = rect.right - rect.left;
int height = rect.bottom - rect.top;
HBITMAP bmp = LoadBitmap(hInst, TEXT("G:\link.jpg"));
HDC memdc = CreateCompatibleDC(hdc);
SelectObject(memdc, bmp);
BitBlt(hdc, 0, 0, weight, height, memdc, 0, 0, SRCCOPY);
EndPaint(hWnd, &ps);
} |
|