CFileDialog::GetReadOnlyPref

Call this function to determine whether the Read Only check box has been selected in the Windows standard File Open and File Save As dialog boxes.

BOOL GetReadOnlyPref( ) const;

Return Value

Non-zero if the Read Only check box in the dialog box is selected; otherwise 0.

Remarks

You can hide the Read Only check box by setting the OFN_HIDEREADONLY style in the CFileDialog constructor.

Note

Windows Vista style CFileDialog objects do not support this function. Attempting to use this function on a Windows Vista style CFileDialog will throw CNotSupportedException. See CFileDialog Class for more information.

Requirements

Header: afxdlgs.h

See Also

Reference

CFileDialog Class

Hierarchy Chart

CFileDialog::CFileDialog

CFileDialog::GetPathName

CFileDialog::GetFileExt

Other Resources

CFileDialog Members