CFileDialog::OnShareViolation

virtualUINTOnShareViolation(LPCTSTRlpszPathName**);**

Return Value

One of the following values:

  • OFN_SHAREFALLTHROUGH   The filename is returned from the dialog box.

  • OFN_SHARENOWARN   No further action needs to be taken.

  • OFN_SHAREWARN   The user receives the standard warning message for this error.

Parameters

lpszPathName

The path of the file on which the share violation occurred.

Remarks

Override this function to provide custom handling of share violations. Normally, you do not need to use this function because the framework provides default checking of share violations and displays a message box if a share violation occurs.

If you want to disable share violation checking, use the bitwise OR operator to combine the flag OFN_SHAREAWARE with m_ofn.Flags.

CFileDialog OverviewClass MembersHierarchy Chart

See Also   CFileDialog::OnFileNameOK