Partilhar via


CFileDialog Members

Base Class Members

CObject Members

CCmdTarget Members

CWnd Members

CDialog Members

CCommonDialog Members

Data Members

m_ofn

The Windows OPENFILENAME structure. Provides access to basic file dialog box parameters.

Construction

CFileDialog

Constructs a CFileDialog object.

Operations

AddCheckButton

Adds a check button to the dialog.

AddComboBox

Adds a combo box to the dialog.

AddControlItem

Adds an item to a container control in the dialog.

AddEditBox

Adds an edit box to the dialog.

AddMenu

Adds a menu to the dialog.

AddPlace

Overloaded. Adds a folder to the list of places available for the user to open or save items.

AddPushButton

Adds a button to the dialog.

AddRadioButtonList

Adds an option button (also known as radio button) group to the dialog.

AddSeparator

Adds a separator to the dialog.

AddText

Adds text content to the dialog.

ApplyOFNToShellDialog

Updates the state of the CFileDialog to match the parameters and flags stored in the m_ofn member variable.

DoModal

Displays the dialog box and enables the user to make a selection.

EnableOpenDropDown

Enables a drop-down list on the Open or Save button in the dialog.

EndVisualGroup

Stops the addition of elements to a visual group in the dialog.

GetCheckButtonState

Gets the current state of a check button (check box) in the dialog.

GetControlItemState

Gets the current state of an item in a container control found in the dialog.

GetControlState

Gets the current visibility and enabled states of a given control.

GetEditBoxText

Gets the current text in an edit box control.

GetFileExt

Returns the extension of the selected file.

GetFileName

Returns the file name of the selected file.

GetFileTitle

Returns the title of the selected file.

GetFolderPath

Retrieves the path of the currently open folder or directory for an Explorer-style Open or Save As common dialog box.

GetIFileDialogCustomize

Retrieves the internal COM object for a customized CFileDialog object.

GetIFileOpenDialog

Retrieves the internal COM object for a CFileDialog that is used as an Open file dialog box.

GetIFileSaveDialog

Retrieves the internal COM object for a CFileDialog that is used as a Save file dialog box.

GetNextPathName

Returns the full path of the next selected file.

GetOFN

Retrieves the OPENFILENAME structure of the CFileDialog object.

GetPathName

Returns the full path of the selected file.

GetReadOnlyPref

Returns the read-only status of the selected file.

GetResult

Gets the choice that the user made in the dialog.

GetResults

Gets the user's choices in a dialog that allows multiple selection.

GetSelectedControlItem

Gets a particular item from specified container controls in the dialog.

GetStartPosition

Returns the position of the first element of the file name list.

HideControl

Hides the specified control in an Explorer-style Open or Save As common dialog box.

IsPickFoldersMode

Determines if the current dialog in folder picker mode.

MakeProminent

Places a control in the dialog so that it stands out compared to other added controls.

RemoveControlItem

Removes an item from a container control in the dialog.

SetCheckButtonState

Sets the current state of a check button (check box) in the dialog.

SetControlItemState

Sets the current state of an item in a container control found in the dialog.

SetControlItemText

Sets the text of a control item. For example, the text that accompanies a radio button or an item in a menu.

SetControlLabel

Sets the text associated with a control, such as button text or an edit box label.

SetControlState

Sets the current visibility and enabled states of a given control.

SetControlText

Sets the text for the specified control in an Explorer-style Open or Save As common dialog box.

SetDefExt

Sets the default file name extension for an Explorer-style Open or Save As common dialog box.

SetEditBoxText

Sets the current text in an edit box control.

SetProperties

Provides a property store that defines the default values to be used for the item being saved.

SetSelectedControlItem

Sets the selected state of a particular item in an option button group or a combo box found in the dialog.

SetTemplate

Sets the dialog box template for the CFileDialog object.

StartVisualGroup

Declares a visual group in the dialog. Subsequent calls to any "add" method add those elements to this group.

UpdateOFNFromShellDialog

Updates the data stored in the m_ofn member variable to match the current state of the file dialog box.

Overridables

OnButtonClicked

Called when the button is clicked.

OnCheckButtonToggled

Called when the check box is checked/unchecked.

OnControlActivating

Called when the control is being active.

OnFileNameChange

Handles the WM_NOTIFY CDN_SELCHANGE message.

OnFileNameOK

Validates the file name entered in the dialog box.

OnFolderChange

Handles the WM_NOTIFY CDN_FOLDERCHANGE message.

OnInitDone

Handles the WM_NOTIFY CDN_INITDONE message.

OnItemSelected

Called when the container item is being selected.

OnLBSelChangedNotify

Allows you to perform custom actions when the file selection changes.

OnShareViolation

Handles share violations.

OnTypeChange

Handles the WM_NOTIFY CDN_TYPECHANGE message.

See Also

Reference

CFileDialog Class

Hierarchy Chart