Export (0) Print
Expand All
Expand Minimize

CFileDialog::OnShareViolation

Override this function to provide custom handling of share violations.

virtual UINT OnShareViolation( 
   LPCTSTR lpszPathName  
);

lpszPathName

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

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.

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.

Header: afxdlgs.h

Show:
© 2014 Microsoft