Share via


COleControl::OnClose

Called by the framework when the container has called the control's IOleControl::Close function.

virtual void OnClose(
   DWORD dwSaveOption 
);

Parameters

  • dwSaveOption
    Flag that indicates whether the object should be saved before loading. Valid values are:

    • OLECLOSE_SAVEIFDIRTY

    • OLECLOSE_NOSAVE

    • OLECLOSE_PROMPTSAVE

Remarks

By default, OnClose saves the control object if it has been modified and dwSaveOption is either OLECLOSE_SAVEIFDIRTY or OLECLOSE_PROMPTSAVE.

Requirements

Header: afxctl.h

See Also

Reference

COleControl Class

Hierarchy Chart

Other Resources

COleControl Members