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
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.
11
11
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.
13
13
14
14
### To create the MFC host application
15
15
16
16
1. Create an MFC Application project.
17
17
18
18
On the **File** menu, select **New**, and then click **Project**. In the **Visual C++** folder, select **MFC Application**.
19
19
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**.
21
21
22
22
In the **MFC Application Wizard**, accept all the defaults, and then click **Finish**. This creates an MFC application with a Multiple Document Interface.
23
23
@@ -105,7 +105,7 @@ The process that `CWinFormsDialog` uses to host the user control is the similar
105
105
CString m_sEditBoxOnWinForm;
106
106
```
107
107
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:
0 commit comments