为什么这段代码在EVC3下面无法实现加载BIMAP?
case WM_CREATE:
// CreatePic(hWnd);
CreateFull(hWnd);
CreateMain(hWnd);
HideMain(hWnd,true);
HideCondition(hWnd,true);
hInstancebmp = ((LPCREATESTRUCT)lParam)->hInstance;
hBitmaplmag = LoadBitmap(hInstancebmp,TEXT("WELCOME"));
GetObject(hBitmaplmag,sizeof(BITMAP),&bitmap);
cxBitmap = bitmap.bmWidth;
cyBitmap = bitmap.bmHeight;
// SetScrollInfo(GetDlgItem(hWnd,EDITID+3),SB_CTL,psbar,true);
break;
case WM_SIZE:
cxClient = LOWORD(lParam);
cyClient = HIWORD(lParam);
break;
case WM_PAINT:
RECT rt;
hdc = BeginPaint(hWnd, &ps);
GetClientRect(hWnd, &rt);
LoadString(hInst, IDS_HELLO, szHello, MAX_LOADSTRING);
DrawText(hdc, szHello, _tcslen(szHello), &rt,
DT_SINGLELINE | DT_VCENTER | DT_CENTER);
hdcMemlmag = CreateCompatibleDC(hdc);
SelectObject(hdcMemlmag, hBitmaplmag);
x = (cxClient - cxBitmap)/2;
y = (cyClient - cyBitmap)/2;
BitBlt(hdc, x, y, cxBitmap, cyBitmap, hdcMemlmag, 0, 0, SRCPAINT);
DeleteDC(hdcMemlmag);
EndPaint(hWnd, &ps);
break;