CBitmap bitmap;
BOOL bl=bitmap.LoadBitmap(IDB_BITMAP1);//位图资源ID
BITMAP bm;
int iRe=bitmap.GetBitmap(&bm);
//这样函数调用成功,返回值是24,
//但查看bm的bmBits成员时,值为0,这是为什么?
BOOL bl=bitmap.LoadBitmap(IDB_BITMAP1);//位图资源ID
BITMAP bm;
int iRe=bitmap.GetBitmap(&bm);
//这样函数调用成功,返回值是24,
//但查看bm的bmBits成员时,值为0,这是为什么?
解决方案 »
- 帮我看看这条语句是什么意思
- .exe 中的 0x00411a68 处最可能的异常: 0xC0000005: 读取位置 0x00000000 时发生访问冲突
- 请凡是用C和C++的都进来看看!帮帮忙!
- 我写的软件会不会构成侵权??
- 如何 在vc 代码中 动态 创建数据库,数据库中的表 谢谢!
- 请教高手vc++如何格式化输出*.txt文件
- 急求<COM本质论>一书
- 请问用w3 JMail 发带有附件的邮件的时候为什么总会有这信息产生 This is a multipart message in MIME format.
- 在TC2中的ASM??
- 加时间到串口打印中,时间显示位置有错误。
- 如何从数据源中提取出用户名和密码以及描述信息?
- cpu资源问题
但还是可以用GetBitmapBits()得到阿
因为这个成员一般是用在产生位图时,如果把它指向已知的像素,就使新位图初始化。
Res:
Copies the bit pattern of the CBitmap object into the buffer that is pointed to by lpBits. The dwCount parameter specifies the number of bytes to be copied to the buffer. Use CGdiObject::GetObject to determine the correct dwCount value for the given bitmap.GetBitmap:
Res
Call this member function to retrieve information about a CBitmap object. This information is returned in the BITMAP structure referred to by pBitmap.