CAViewer::SetModifiedFlag

CAViewer class

Sets the modified flag.

BOOL SetModifiedFlag(
  BOOL onoroff
  );

Parameters

onoroff
If set to TRUE, the modified flag is set; if set to FALSE, the modified flag is cleared.

Return Value

Returns TRUE if the operation was successful; otherwise, FALSE.

Remarks

When a change in the Array Viewer state is made, either by the CAViewer method or user interaction, the Viewer sets an internal flag noting that the state has been modified. If the flag is set, and the user closes the Viewer window, a dialog is displayed asking if the changes should be saved. This method can be used to modify the current value of the modified flag.

For example, if you do not want the user prompted to save changes, you can use the following call after making any CAViewer call that modifies the Array Viewer state:

CAViewer::SetModifiedFlag(FALSE)

See Also

CAViewer::GetModifiedFlag