Hosting a Windows Form User Control in an MFC Dialog Box

JavaScript EditorDhtml editor     Free javascript download 



Main Page

MFC hosts a Windows Forms control as a special kind of ActiveX control and communicates with the control using ActiveX interfaces (for example, IOleObject) and properties and methods of the Control class. In general, you should use .NET Framework properties and methods to operate on the control.

For a sample application that shows Windows Forms used with MFC, see MFC and .

NoteNote

In the current release, a CDialogBar object cannot host Windows Forms controls.

In This Section

Reference

CWinFormsControl Class | CDialog Class | CWnd Class | Control

See Also



JavaScript EditorDhtml editor     Free javascript download