HDC hdc=GetDC(GetConsoleWindow());
HDC mdc;
HBITMAP hBitmap;
hBitmap=LoadBitmap(0,MAKEINTRESOURCE(IDB_BITMAP1));
mdc=CreateCompatibleDC(hdc);
SelectObject(mdc,hBitmap);
BitBlt(hdc,10,10,58,58,mdc,0,0,SRCCOPY);
或者
hBitmap=(HBITMAP)LoadImage(0,L"bitmap1.bmp",IMAGE_BITMAP, 0, 0, LR_CREATEDIBSECTION);
vs2010下的,试了一些方法,都不成功,求高手解答
HDC mdc;
HBITMAP hBitmap;
hBitmap=LoadBitmap(0,MAKEINTRESOURCE(IDB_BITMAP1));
mdc=CreateCompatibleDC(hdc);
SelectObject(mdc,hBitmap);
BitBlt(hdc,10,10,58,58,mdc,0,0,SRCCOPY);
或者
hBitmap=(HBITMAP)LoadImage(0,L"bitmap1.bmp",IMAGE_BITMAP, 0, 0, LR_CREATEDIBSECTION);
vs2010下的,试了一些方法,都不成功,求高手解答