

- #Mfc application wizard multiple top level documents code#
- #Mfc application wizard multiple top level documents series#
Click on the Application Type link in the left frame of the MFC Application Wizard. To create a Single Document Interface (SDI) application without database support, you need to do the following:ġ. For example, if you need to create a Multiple Document Interface (MDI) application, you need to select the Multiple Documents option in the Application Type page.įIGURE 3-1 The MFC Application Wizard displaying the Overview page To create an application by using the MFC Application Wizard, you need to provide some basic information for the properties that you want to set for your application. It displays the overview of the properties that you select for an application. By default, the Overview link is selected. The right frame displays the related properties of the property type you select. To set specific properties for an application, you need to click on the related property type. The left frame consists of the links for the different types of properties, such as Application Type, Database Support, User Interface Features, and Generated Classes. The MFC Application Wizard has two frames, as shown in Figure 3-1.
#Mfc application wizard multiple top level documents series#
However, a significant difference between the MFC Application Wizard of VC++.NET and the MFC AppWizard of VC++ 6 is that the wizard guides you through a series of six steps for applying properties for an application in VC++ 6, whereas in VC++.NET, all the properties for an application are available in the same dialog box. The MFC Application Wizard starts with options that are almost similar to VC++ 6. To change the default folder, you can either type the path of the required folder in the Location text box or click on Browse to locate and specify the required folder. An application named MyFirstApplication is created in the default folder of Visual Studio.NET. Type MyFirstApplication in the Name text box. Select the MFC Application icon from the Templates list.Ĥ. The Template list displays the wizards for creating different types of applications in Visual C++.ģ. If you have already configured Visual C++ Projects as a default selection of Visual Studio.NET, you can skip this step. Select Visual C++ Projects from the Project Types list. Select File, New, Project to open the New Project dialog box.Ģ. To create an application using the MFC Application Wizard, you need to perform the following steps:ġ. For example, if you select Visual C++ Projects, Visual Studio.NET opens Visual C++ Projects by default. On this page, you can configure the default project type that you want to open when you start Visual Studio.NET from next time onward. When you start Visual Studio.NET for the first time, a Start page is displayed. Create an application framework by using the MFC Application Wizard.Įach of these processes is discussed next in detail.

Using the MFC Application Wizard consists of two steps:Ģ.
#Mfc application wizard multiple top level documents code#
After the framework for the application is ready, you can customize it by adding the required objects and code for handling different activities in the application. Based on your input in the different pages of the wizard, the application framework includes the objects of the required classes for an application.

By using the wizard, you create a framework for an application. The simplest way to create an MFC application is to use the MFC Application Wizard. The chapter covers the different classes that you needįor an MFC application framework and also discusses the procedure to customizeĪn application that the wizard generated. The MFC Application Wizard, which is used to create a framework of the user Ithis chapter, you will learn to create a user interface. N Chapter 2, you learned the basic concepts of VC++.NET programming.
