Insérer un personnaliser en un projet
Forms provide a convenient container for controls. You can easily insert an MFC-based form into your application as long as the application supports the MFC libraries.
To insert a form into your project
From Class View, select the project to which you want to add the form, and click the right mouse button.
Dans le menu contextuel, cliquez sur Ajouter, puis sur Ajouter une classe.
If the New Form command is not available, your project may be based on the Active Template Library (ATL). To add a form to an ATL project, you must specify certain settings when first creating the project.
From the MFC folder, click MFC Class.
Using the MFC Class Wizard, make the new class derive from CFormView.
Visual C++ adds the form to your application, opening it inside the Dialog editor so that you can begin adding controls and working on its overall design.
You may want to perform the following additional steps (not applicable for dialog-based applications):
Override the OnUpdate member function.
Implement a member function to move data from your view to your document.
Create an OnPrint member function.