SetUserMessageMode method
Subsequent Content Manager OnDemand exception messages resulting from OLE Control operations are displayed or suppressed as requested.
- Method
- short SetUserMessageMode(
- Parameters
- Mode
- Specifies the new user message mode. This must be one of the following
message mode values found in ARSOLEEX.H:
ARS_OLE_USER_MSG_MODE_SHOW ARS_OLE_USER_MSG_MODE_SUPPRESS
ARS_OLE_USER_MSG_MODE_SHOW indicates that all Content Manager OnDemand exception messages resulting from OLE Control operations are to be displayed to the user. ARS_OLE_USER_MSG_MODE_SUPPRESS indicates that all Content Manager OnDemand exception messages resulting from OLE Control operations are to be suppressed.
- Description
- Subsequent Content Manager OnDemand exception messages resulting from OLE Control operations are displayed or suppressed as requested.
- Return Value
- Refer to return codes.
C/C + +
The following example suppresses Content Manager OnDemand exception messages resulting from OLE Control operations. CArsOle * pArsCtrl;
short rc;
.
.
rc = pArsCtrl->SetUserMessageMode( ARS_OLE_USER_MSG_MODE_SUPPRESS );
if ( rc != ARS_OLE_RC_SUCCESS )
ERROR;
.
.
Visual Basic
Dim rc As Integer
.
.
rc = ArsOle.SetUserMessageMode (ARS_OLE_USER_MSG_MODE_SUPPRESS)
If rc <> ARS_OLE_RC_SUCCESS Then
MsgBox "ERROR"
End
End If
.
.