Поделиться через


COleControl::OnClose

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

virtual void OnClose(
   DWORD dwSaveOption 
);

Параметры

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

    • OLECLOSE_SAVEIFDIRTY

    • OLECLOSE_NOSAVE

    • OLECLOSE_PROMPTSAVE

Заметки

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

Требования

Header: afxctl.h

См. также

Основные понятия

COleControl Class

COleControl Members

Hierarchy Chart