You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/mfc/reference/cfiledialog-class.md
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -119,7 +119,7 @@ Some `CFileDialog` methods are not supported under Windows Vista or later. Check
119
119
120
120
The windows messages for the `CFileDialog` class vary based on what operating system you are using. For example, Windows XP does not support [CDialog::OnCancel](../../mfc/reference/cdialog-class.md#oncancel) and [CDialog::OnOK](../../mfc/reference/cdialog-class.md#onok) for the `CFileDialog` class. However, Windows Vista and later operating systems do support them. For more information about the different messages that are generated and the order in which they are received, see [CFileDialog Sample: Logging Event Order](../../overview/visual-cpp-samples.md).
121
121
122
-
To use a `CFileDialog` object, first create the object by using the `CFileDialog` constructor. After the dialog box has been constructed, you can set or modify any values in the [CFileDialog::m_ofn](#m_ofn) structure to initialize the values or states of the dialog box controls. The `m_ofn` structure is of type `OPENFILENAME`. For more information, see the [OPENFILENAME](/windows/desktop/api/commdlg/ns-commdlg-tagofna) structure in the Windows SDK.
122
+
To use a `CFileDialog` object, first create the object by using the `CFileDialog` constructor. After the dialog box has been constructed, you can set or modify any values in the [CFileDialog::m_ofn](#m_ofn) structure to initialize the values or states of the dialog box controls. The `m_ofn` structure is of type `OPENFILENAME`. For more information, see the [OPENFILENAME](/windows/win32/api/commdlg/ns-commdlg-openfilenamew) structure in the Windows SDK.
123
123
124
124
After you initialize the dialog box controls, call the [CFileDialog::DoModal](#domodal) method to display the dialog box so that the user can type the path and file name. `DoModal` returns whether the user clicked the OK (IDOK) or the Cancel (IDCANCEL) button. If `DoModal` returns IDOK, you can use one of the `CFileDialog` public member functions to retrieve the information put in by the user.
125
125
@@ -416,7 +416,7 @@ explicit CFileDialog(
416
416
[in] The initial file name that appears in the Filename box. If NULL, no initial file name appears.
417
417
418
418
*dwFlags*<br/>
419
-
[in] A combination of one or more flags that you can use to customize the dialog box. For a description of these flags, see the [OPENFILENAME](/windows/desktop/api/commdlg/ns-commdlg-tagofna) structure in the Windows SDK. If you modify the `m_ofn.Flags` structure member, use a bitwise-OR operator in your changes to keep the default behavior intact.
419
+
[in] A combination of one or more flags that you can use to customize the dialog box. For a description of these flags, see the [OPENFILENAME](/windows/win32/api/commdlg/ns-commdlg-openfilenamew) structure in the Windows SDK. If you modify the `m_ofn.Flags` structure member, use a bitwise-OR operator in your changes to keep the default behavior intact.
420
420
421
421
*lpszFilter*<br/>
422
422
[in] A series of string pairs that specify filters you can apply to the file. If you specify file filters, only files that match filter criteria will appear in the Files list. See the Remarks section for more information about how to work with file filters.
@@ -428,7 +428,7 @@ explicit CFileDialog(
428
428
[in] The size of the `OPENFILENAME` structure. This value depends on the operating system version. MFC used this parameter to determine the appropriate kind of dialog box to create. The default size of 0 means that the MFC code will determine the correct dialog box size to use based on the operating system version on which the program is run.
429
429
430
430
*bVistaStyle*<br/>
431
-
[in]**Note** This parameter is available in Visual Studio 2008 and later and is will cause the new-style dialog to be used only if you are running in Windows Vista or later.
431
+
[in]**Note** This parameter is available in Visual Studio 2008 and later and causes the new-style dialog to be used only if you are running in Windows Vista or later.
432
432
433
433
The parameter that specifies the style of the file dialog. Set it to TRUE to use the new Vista style file dialogs. Otherwise, the old style of dialog boxes will be used. See the Remarks section for more information about running under Vista.
434
434
@@ -784,7 +784,7 @@ OPENFILENAME& GetOFN();
784
784
785
785
### Return Value
786
786
787
-
An [OPENFILENAME](/windows/desktop/api/commdlg/ns-commdlg-tagofna) structure.
787
+
An [OPENFILENAME](/windows/win32/api/commdlg/ns-commdlg-openfilenamew) structure.
788
788
789
789
### Remarks
790
790
@@ -972,7 +972,7 @@ The following flags are not supported and therefore have no effect when you use
972
972
973
973
- OFN_SHOWHELP
974
974
975
-
For more information about this structure, see the [OPENFILENAME](/windows/desktop/api/commdlg/ns-commdlg-tagofna) structure in the Windows SDK.
975
+
For more information about this structure, see the [OPENFILENAME](/windows/win32/api/commdlg/ns-commdlg-openfilenamew) structure in the Windows SDK.
The system sends the CDN_SELCHANGE message when the user selects a new file or folder in the file list of the **Open** or **Save As** dialog box. Override this method if you want to perform any actions in response to this message.
1053
1053
1054
-
The system sends this message only if the dialog box was created with the OFN_EXPLORER flag turned on. For more information about the notification, see [CDN_SELCHANGE](/windows/desktop/dlgbox/cdn-selchange). For information about the OFN_EXPLORER flag, see the [OPENFILENAME](/windows/desktop/api/commdlg/ns-commdlg-tagofna) structure and [Open and Save As Dialog Boxes](/windows/desktop/dlgbox/open-and-save-as-dialog-boxes).
1054
+
The system sends this message only if the dialog box was created with the OFN_EXPLORER flag turned on. For more information about the notification, see [CDN_SELCHANGE](/windows/desktop/dlgbox/cdn-selchange). For information about the OFN_EXPLORER flag, see the [OPENFILENAME](/windows/win32/api/commdlg/ns-commdlg-openfilenamew) structure and [Open and Save As Dialog Boxes](/windows/desktop/dlgbox/open-and-save-as-dialog-boxes).
The notification message is sent when a new folder is opened in the Open or Save As dialog box.
1085
1085
1086
-
Notification is sent only if the dialog box was created with the OFN_EXPLORER style. For more information about the notification, see [CDN_FOLDERCHANGE](/windows/desktop/dlgbox/cdn-folderchange). For information about the OFN_EXPLORER style, see the [OPENFILENAME](/windows/desktop/api/commdlg/ns-commdlg-tagofna) structure and [Open and Save As Dialog Boxes](/windows/desktop/dlgbox/open-and-save-as-dialog-boxes).
1086
+
Notification is sent only if the dialog box was created with the OFN_EXPLORER style. For more information about the notification, see [CDN_FOLDERCHANGE](/windows/desktop/dlgbox/cdn-folderchange). For information about the OFN_EXPLORER style, see the [OPENFILENAME](/windows/win32/api/commdlg/ns-commdlg-openfilenamew) structure and [Open and Save As Dialog Boxes](/windows/desktop/dlgbox/open-and-save-as-dialog-boxes).
The system sends this notification message when the system has finished arranging controls in the **Open** or **Save As** dialog box to make room for the controls of the child dialog box.
1099
1099
1100
-
The system sends this only if the dialog box was created with the OFN_EXPLORER style. For more information about the notification, see [CDN_INITDONE](/windows/desktop/dlgbox/cdn-initdone). For information about the OFN_EXPLORER style, see the [OPENFILENAME](/windows/desktop/api/commdlg/ns-commdlg-tagofna) structure and [Open and Save As Dialog Boxes](/windows/desktop/dlgbox/open-and-save-as-dialog-boxes).
1100
+
The system sends this only if the dialog box was created with the OFN_EXPLORER style. For more information about the notification, see [CDN_INITDONE](/windows/desktop/dlgbox/cdn-initdone). For information about the OFN_EXPLORER style, see the [OPENFILENAME](/windows/win32/api/commdlg/ns-commdlg-openfilenamew) structure and [Open and Save As Dialog Boxes](/windows/desktop/dlgbox/open-and-save-as-dialog-boxes).
1101
1101
1102
1102
> [!NOTE]
1103
1103
> Windows Vista or later style file dialogs do not support this function. Attempting to use this function on a Windows Vista or later style file dialog will throw [CNotSupportedException](../../mfc/reference/cnotsupportedexception-class.md).
The notification message is sent when the user selects a new file type from the list of file types in the Open or Save As dialog box.
1199
1199
1200
-
Notification is sent only if the dialog box was created with the OFN_EXPLORER style. For more information about the notification, see [CDN_TYPECHANGE](/windows/desktop/dlgbox/cdn-typechange). For information about the OFN_EXPLORER style, see the [OPENFILENAME](/windows/desktop/api/commdlg/ns-commdlg-tagofna) structure and [Open and Save As Dialog Boxes](/windows/desktop/dlgbox/open-and-save-as-dialog-boxes).
1200
+
Notification is sent only if the dialog box was created with the OFN_EXPLORER style. For more information about the notification, see [CDN_TYPECHANGE](/windows/desktop/dlgbox/cdn-typechange). For information about the OFN_EXPLORER style, see the [OPENFILENAME](/windows/win32/api/commdlg/ns-commdlg-openfilenamew) structure and [Open and Save As Dialog Boxes](/windows/desktop/dlgbox/open-and-save-as-dialog-boxes).
A list of predefined properties separated by ";". For a list of the flags, see the **Flags** section of [OPENFILENAME](/windows/desktop/api/commdlg/ns-commdlg-tagofna).
1406
+
A list of predefined properties separated by ";". For a list of the flags, see the **Flags** section of [OPENFILENAME](/windows/win32/api/commdlg/ns-commdlg-openfilenamew).
Copy file name to clipboardExpand all lines: docs/mfc/reference/cmfceditbrowsectrl-class.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -151,7 +151,7 @@ Dialog box flags. The default value is a bitwise combination (OR) of OFN_HIDEREA
151
151
152
152
When the edit browse control is in file browse mode and the user clicks the browse button, the control displays the standard file selection dialog box.
153
153
154
-
For a full list of available flags, see [OPENFILENAME structure](/windows/desktop/api/commdlg/ns-commdlg-tagofna).
154
+
For a full list of available flags, see [OPENFILENAME structure](/windows/win32/api/commdlg/ns-commdlg-openfilenamew).
0 commit comments