This topic has not yet been rated - Rate this topic

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;

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

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

Note 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.

Header: afxdlgs.h

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ