禁止OLE控件被选中
sms88 2012-06-19 08:52:43 我在CRichEditCtrl动态插入的OLE控件,用于显示 gif 图片的 ,当这个控件本身显示在顶部的时候,鼠标点击这个控件后就会显示这个控件出来了,设置什么属性能让他不被选中?
reobject.clsid = clsid;
reobject.cp = REO_CP_SELECTION;
reobject.dvaspect = DVASPECT_CONTENT;
reobject.poleobj = pOleObject;
reobject.polesite = pOleClientSite;
reobject.pstg = pStorage;
// Insert the bitmap at the current location in the richedit control
// 将这个图片对象插入RICHEDIT
m_pRichEditOle-> InsertObject(&reobject);