Skip to content

Commit f5ea4db

Browse files
author
Colin Robertson
committed
Fix broken SDK doc link.
1 parent 602b1bf commit f5ea4db

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

docs/mfc/reference/cfiledialog-class.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ Some `CFileDialog` methods are not supported under Windows Vista or later. Check
119119

120120
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).
121121

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

124124
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.
125125

@@ -416,7 +416,7 @@ explicit CFileDialog(
416416
[in] The initial file name that appears in the Filename box. If NULL, no initial file name appears.
417417

418418
*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.
420420

421421
*lpszFilter*<br/>
422422
[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(
428428
[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.
429429

430430
*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.
432432

433433
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.
434434

@@ -784,7 +784,7 @@ OPENFILENAME& GetOFN();
784784

785785
### Return Value
786786

787-
An [OPENFILENAME](/windows/desktop/api/commdlg/ns-commdlg-tagofna) structure.
787+
An [OPENFILENAME](/windows/win32/api/commdlg/ns-commdlg-openfilenamew) structure.
788788

789789
### Remarks
790790

@@ -972,7 +972,7 @@ The following flags are not supported and therefore have no effect when you use
972972

973973
- OFN_SHOWHELP
974974

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

977977
## <a name="makeprominent"></a> CFileDialog::MakeProminent
978978

@@ -1051,7 +1051,7 @@ virtual void OnFileNameChange();
10511051

10521052
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.
10531053

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).
10551055

10561056
## <a name="onfilenameok"></a> CFileDialog::OnFileNameOK
10571057

@@ -1083,7 +1083,7 @@ virtual void OnFolderChange();
10831083

10841084
The notification message is sent when a new folder is opened in the Open or Save As dialog box.
10851085

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).
10871087

10881088
## <a name="oninitdone"></a> CFileDialog::OnInitDone
10891089

@@ -1097,7 +1097,7 @@ virtual void OnInitDone();
10971097

10981098
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.
10991099

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).
11011101

11021102
> [!NOTE]
11031103
> 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).
@@ -1197,7 +1197,7 @@ virtual void OnTypeChange();
11971197

11981198
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.
11991199

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).
12011201

12021202
## <a name="removecontrolitem"></a> CFileDialog::RemoveControlItem
12031203

@@ -1403,7 +1403,7 @@ BOOL SetProperties(LPCWSTR lpszPropList);
14031403
### Parameters
14041404

14051405
*lpszPropList*<br/>
1406-
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).
14071407

14081408
### Remarks
14091409

docs/mfc/reference/cmfceditbrowsectrl-class.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ Dialog box flags. The default value is a bitwise combination (OR) of OFN_HIDEREA
151151

152152
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.
153153

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).
155155

156156
## <a name="enablefolderbrowsebutton"></a> CMFCEditBrowseCtrl::EnableFolderBrowseButton
157157

docs/mfc/reference/cmfcpropertygridfileproperty-class.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ CMFCPropertyGridFileProperty(
9191

9292
### Remarks
9393

94-
For a full list of available flags, see [OPENFILENAME structure](/windows/desktop/api/commdlg/ns-commdlg-tagofna).
94+
For a full list of available flags, see [OPENFILENAME structure](/windows/win32/api/commdlg/ns-commdlg-openfilenamew).
9595

9696
### Example
9797

0 commit comments

Comments
 (0)