这是我的加载代码,我无法理解我做错了:
case WM_CREATE:
hBitmap = (HBITMAP)LoadImage(0, TEXT("D:/ECG/Games/n.bmp"), IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE | LR_CREATEDIBSECTION | LR_DEFAULTSIZE);
GetObject(hBitmap, sizeof(BITMAP), &bm);
//imgRgn = CreateRectRgn(0, 0, bm.bmWidth, bm.bmHeight);
SetTimer(hWnd, TIMER_1, 30, NULL);
break;
答案 0 :(得分:0)
尝试:
hBitmap = (HBITMAP)LoadImage(0, TEXT("D:\ECG\Games\n.bmp"), IMAGE_BITMAP, 0, 0, LR_LOADFROMFILE | LR_CREATEDIBSECTION | LR_DEFAULTSIZE);
\
代替/