This documentation is archived and is not being maintained.

CWinFormsView::CWinFormsView 

Constructs a CWinFormsView object.


CWinFormsView(
   System::Type^ pManagedViewType
);

Parameters

pManagedViewType

A pointer to the data type of the Windows Forms user control. For more information, see System.Type.

In the following example, the CUserView class inherits from CWinFormsView and passes the type of UserControl1 to the CWinFormsView constructor. UserControl1 is a custom-built control in WindowsControlLibrary1.dll.

#using <WindowsControlLibrary1.dll>
class CUserView : public CWinFormsView

{
   ...
};

IMPLEMENT_DYNCREATE(CUserView, CWinFormsView)
BEGIN_MESSAGE_MAP(CUserView, CWinFormsView)
CUserView::CUserView( )
: CWinFormsView(__typeof(WindowsControlLibrary1::UserControl1)) 
{
}
Show: