OnAppIsActiveDocumentModified Method

The client application is responsible for implementing an OnAppIsActiveDocumentModified event handler for some of the supported FileNet Application Integration commands. This event handler method should return, via the parameter list, a bool indicating whether the application's active document has been modified.

Example
The following fragment is taken from the Add-In Sample Application.


HRESULT __stdcall CEventHandler::OnAppIsActiveDocumentModified(VARIANT_BOOL *pIsActiveDocumentModified)
{
   // Since there is no current mechanism to check whether or not the document is modified,
   // just return true and force a save.
   *pIsActiveDocumentModified = VARIANT_TRUE;
   return S_OK;
}
Parameters
boolActiveModified - [out] A pointer to a VARIANT Boolean is returned, which indicates whether the application has a currently active document that has been modified since it was opened. A value of VARIANT_TRUE indicates that the currently active document has been modified; otherwise VARIANT_FALSE is returned.
Return
The OnAppIsActiveDocumentModified event handler method should return an HRESULT value of S_OK when successful.
See Also
OnAppCloseActiveDocument Method
OnAppGetActiveDocumentPath Method
OnAppIsActiveDocumentNew Method
OnAppSaveModifiedActiveDocument Method
OnAppSaveNewActiveDocument Method