Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. ATL / WTL / STL
  4. Problem of OLE Object

Problem of OLE Object

Scheduled Pinned Locked Moved ATL / WTL / STL
helpcomhostingcloudquestion
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    whiteclouds
    wrote on last edited by
    #1

    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.

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups