Share via


CWinFormsView::CWinFormsView

Crea un objeto CWinFormsView.

CWinFormsView(
   System::Type^ pManagedViewType
);

Parámetros

  • pManagedViewType
    Un puntero al tipo de datos del control de usuario de Windows Forms.Para obtener más información, vea System.Type.

Ejemplo

En el ejemplo siguiente, la clase de CUserView hereda de CWinFormsView y pase el tipo de UserControl1 al constructor de CWinFormsView .UserControl1 es un control a la medida en ControlLibrary1.dll.

class CMyView : public CWinFormsView
IMPLEMENT_DYNCREATE(CMyView, CWinFormsView)

BEGIN_MESSAGE_MAP(CMyView, CWinFormsView)
END_MESSAGE_MAP()

CMyView::CMyView()
   : CWinFormsView(ControlLibrary1::UserControl1::typeid)
{
}

Requisitos

encabezado: afxwinforms.h

Vea también

Referencia

Clase CWinFormsView