我试过了,还是不行,程序运行之后,剪贴板查看器里面会显示:ClipBook Viewer cannot display the information in its current format or there is not enough memory to display it.Quit one or more applications to increase the available memory,and then try again.
我这一段的代码是:
HBITMAP hBitmap=(HBITMAP)LoadImage(AfxGetInstanceHandle(),MAKEINTRESOURCE(IDB_BITMAP1),IMAGE_BITMAP,0,0,LR_DEFAULTCOLOR);
HGLOBAL hMem=GlobalAlloc(GHND|GMEM_SHARE,19*19*3);
LPBITMAP lpBmpData=(LPBITMAP)GlobalLock(hMem);
memcpy(lpBmpData,hBitmap,19*19*3);
if(OpenClipboard())
{
EmptyClipboard();
SetClipboardData(CF_BITMAP,hMem);
CloseClipboard();
}
GlobalFree(hMem);
请帮忙看看,是什么问题。多谢了!