Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Important This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.

CWinFormsDialog Class 

A wrapper for an MFC dialog class that hosts a Windows Forms user control.


template <typename TManagedControl>
class CWinFormsDialog : 
   public CDialog

Parameters

TManagedControl

The .NET Framework user control to be displayed in the MFC application.

CWinFormsDialog is a wrapper for an MFC dialog class (CDialog) that hosts a Windows Forms (UserControl) user control. This allows the display of .NET Framework controls on a modal or modeless MFC dialog box.

For more information on using Windows Forms, see Using a Windows Form User Control in MFC and Hosting a Windows Form User Control as an MFC Dialog Box.

Header: afxwinforms.h

This class is not supported in Smart Device projects.

Community Additions

ADD
Show:
© 2015 Microsoft