Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Called by the framework when a container requests that the server document be closed.
virtual void OnClose(
OLECLOSE dwCloseOption
);
Parameters
dwCloseOption
A value from the enumeration OLECLOSE. This parameter can have one of the following values:OLECLOSE_SAVEIFDIRTY The file is saved if it has been modified.
OLECLOSE_NOSAVE The file is closed without being saved.
OLECLOSE_PROMPTSAVE If the file has been modified, the user is prompted about saving it.
Remarks
The default implementation calls CDocument::OnCloseDocument.
For more information and additional values, see OLECLOSE in the Windows SDK.
Requirements
Header: afxole.h