Compartir a través de


COleClientItem::OnActivate

Called by the framework to notify the item that it has just been activated in place.

virtual void OnActivate( );

Remarks

Note that this function is called to indicate that the server is running, not to indicate that its user interface has been installed in the container application. At this point, the object does not have an active user interface (is not activeUIState). It has not installed its menus or toolbar. The OnActivateUI member function is called when that happens.

The default implementation calls the OnChange member function with OLE_CHANGEDSTATE as a parameter. Override this function to perform custom processing when an item becomes in-place active.

Requirements

Header: afxole.h

See Also

Reference

COleClientItem Class

Hierarchy Chart

COleClientItem::OnDeactivate

COleClientItem::OnDeactivateUI

COleClientItem::OnActivateUI

COleClientItem::CanActivate

Other Resources

COleClientItem Members