Partager via


CWinFormsView::CWinFormsView

Construit un objet CWinFormsView.

CWinFormsView(
   System::Type^ pManagedViewType
);

Paramètres

  • pManagedViewType
    Un pointeur vers le type de données du contrôle utilisateur Windows Forms.Pour plus d'informations, consultez System.Type.

Exemple

Dans l'exemple suivant, la classe d' CUserView hérite d' CWinFormsView et passe le type d' UserControl1 au constructeur d' CWinFormsView .UserControl1 est un contrôle sur la commande dans ControlLibrary1.dll.

class CMyView : public CWinFormsView
IMPLEMENT_DYNCREATE(CMyView, CWinFormsView)

BEGIN_MESSAGE_MAP(CMyView, CWinFormsView)
END_MESSAGE_MAP()

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

Configuration requise

Header: afxwinforms.h

Voir aussi

Référence

De classe CWinFormsView