还有OleClientSite, OleInPlaceFrame,OleInPlaceSite,这些我总是搞不清楚

解决方案 »

  1.   

    查MSDN的COleClientItem成员函数:ActivationActivate Opens the OLE item for an operation and then executes the specified verb. 
    DoVerb Executes the specified verb. 
    Deactivate Deactivates the item. 
    DeactivateUI Restores the container application’s user interface to its original state. 
    ReactivateAndUndo Reactivates the item and undoes the last in-place editing operation. 
    SetItemRects Sets the item’s bounding rectangle. 
    GetInPlaceWindow Returns a pointer to the item’s in-place editing window. 
      

  2.   

    好象只看到过 IOleInPlaceObject::UIDeactivate
    IOleDocumentSite::ActivateMe这些都是OLE规范,多看看
    容器和服务器通讯UIDeactivate主要用于 因内部服务器改变,筐架的UI或res等相应改变,如菜单