MFC uses the CWinFormsView class to host a Windows Forms user control within an MFC view. MFC Windows Forms views are ActiveX controls. The user control is hosted as a child of the native view and occupies the entire client area of the native view.
The end result is similar to the model used by the
Because MFC Windows Forms views are ActiveX controls, they do not have the same hwnd as MFC views. Also they cannot be passed as a pointer to a
For a sample application that shows Windows Forms used with MFC, see
In This Section
How to: Create the User Control and Host MDI View
How to: Add Command Routing to the Windows Forms Control
How to: Call Properties and Methods of the Windows Forms Control