|
//Get a few bitmaps in RichEdit, here assume there are bitmap files in RichEdit
int c = m_sendRichEdit.GetOleInterface()->GetObjectCount();
for(int i = 0; i <c; i++) //traverse the bitmap
{
REOBJECT object; //Bitmap information exists here
memset(&object,0,sizeof(REOBJECT));
object.cbStruct = sizeof(REOBJECT);
m_sendRichEdit.GetOleInterface()->GetObject(i,&object,REO_GETOBJ_ALL_INTERFACES);
int pos = object.cp; //position information of bitmap
DWORD dwUSer =object.dwUSer; //Bitmap information,} |
|