Share via


COleServerDoc::OnShowDocument

The framework calls the OnShowDocument function when the server document must be hidden or shown.

virtual void OnShowDocument( 
   BOOL bShow  
);

Parameters

  • bShow
    Specifies whether the user interface to the document is to be shown or hidden.

Remarks

If bShow is TRUE, the default implementation activates the server application, if necessary, and causes the container application to scroll its window so that the item is visible. If bShow is FALSE, the default implementation deactivates the item through a call to OnDeactivate, then destroys or hides all frame windows that have been created for the document, except the first one. If no visible documents remain, the default implementation hides the server application.

Requirements

Header: afxole.h

See Also

Reference

COleServerDoc Class

Hierarchy Chart

COleServerDoc::ActivateInPlace

COleServerItem::OnDoVerb

COleServerDoc::IsInPlaceActive

COleServerDoc::OnDeactivateUI