|
发表于 2020-8-21 21:30:02
|
显示全部楼层
//获取RichEdit中有几个bitmap,这里假设RichEdit中有位图文件
int c = m_sendRichEdit.GetOleInterface()->GetObjectCount();
for(int i = 0 ; i < c ; i++) //遍历位图
{
REOBJECT object; //位图信息存在这里
memset(&object,0,sizeof(REOBJECT));
object.cbStruct = sizeof(REOBJECT);
m_sendRichEdit.GetOleInterface()->GetObject(i,&object,REO_GETOBJ_ALL_INTERFACES);
int pos = object.cp ; //位图的位置信息
DWORD dwUSer =object.dwUSer ; //位图的信息, } |
|