Problem of OLE Object
-
Hi All! I am developing an OLE Object for MS-WORD. Now I meet a problem. And I hope someone can help me. The Object I developing can be added into a .doc file. After added, it will draw a shape such as rectangle or circle etc. as the proof of existence. Now I find that when the .doc file which had been added the Object is to be loaded, the shape will be drawn twice. And the position of these shapes are different. I don't know why this occurred. During the time I try to fix it, I noticed that the call of "CComControlBase::InPlaceActivate" is very important. Only after I call it, the loaded object can work. I think this means that one of the two shapes I see is owned by "InPlaceActivate". The other is owned of "UIActivate". But I can't find anyway to make this object is "InPlaceActivated" or "UIActivated" only. Is there anyone could be kind to tell me the correct way to fix this problem? Thank you! Best regards!
There is some white cloud floating on the blue sky. That's the landscape I like.