Skip to content

Commit acf1331

Browse files
authored
Tweak "Hosting a Windows Form User Control as an MFC Dialog Box" article
1 parent 9a14d8a commit acf1331

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/dotnet/hosting-a-windows-form-user-control-as-an-mfc-dialog-box.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ ms.assetid: 0434a9d7-8b14-48e6-ad69-9ba9a684677a
99

1010
MFC provides the template class [`CWinFormsDialog`](../mfc/reference/cwinformsdialog-class.md) so that you can host a Windows Forms user control (<xref:System.Windows.Forms.UserControl>) in a modal or modeless MFC dialog box. `CWinFormsDialog` is derived from the MFC class [`CDialog`](../mfc/reference/cdialog-class.md), so the dialog box can be launched as modal or modeless.
1111

12-
The process that `CWinFormsDialog` uses to host the user control is the similar to that described in [Hosting a Windows Form User Control in an MFC Dialog Box](hosting-a-windows-form-user-control-in-an-mfc-dialog-box.md). However, `CWinFormsDialog` manages the initialization and hosting of the user control so that it does not have to be programmed manually.
12+
The process that `CWinFormsDialog` uses to host the user control is similar to that described in [Hosting a Windows Form User Control in an MFC Dialog Box](hosting-a-windows-form-user-control-in-an-mfc-dialog-box.md). However, `CWinFormsDialog` manages the initialization and hosting of the user control so that it does not have to be programmed manually.
1313

1414
### To create the MFC host application
1515

1616
1. Create an MFC Application project.
1717

1818
On the **File** menu, select **New**, and then click **Project**. In the **Visual C++** folder, select **MFC Application**.
1919

20-
In the **Name** box, enter `MFC03` and change the Solution setting to **Add to Solution**.Click **OK**.
20+
In the **Name** box, enter `MFC03` and change the Solution setting to **Add to Solution**. Click **OK**.
2121

2222
In the **MFC Application Wizard**, accept all the defaults, and then click **Finish**. This creates an MFC application with a Multiple Document Interface.
2323

@@ -105,7 +105,7 @@ The process that `CWinFormsDialog` uses to host the user control is the similar
105105
CString m_sEditBoxOnWinForm;
106106
```
107107

108-
1. In the definition of `DoDataExchange` in `CHostForWinForm.cpp`, add the following three lines to the end of the function:
108+
1. In the definition of `DoDataExchange` in `CHostForWinForm.cpp`, add the following four lines to the end of the function:
109109

110110
```cpp
111111
if (pDX->m_bSaveAndValidate)

0 commit comments

Comments
 (0)