
This step also adds an empty skeleton message handler function named CAutoProjectDlg::OnRun() to the file named AutoProjectDLG.cpp. NOTE:** This step adds a declaration for the function member "OnRun() " to the header file named AutoProjectDLG.h. Click Add Function and accept the function name "OnRun". Select IDRUN in the Object Ids list box and select "BN_CLICKED" in the Messages list box. Remove the Label control (IDC_STATIC) and the Cancel button (IDCANCEL).Ĭhange the name of the OK button to "IDRUN" and the caption to "Run." Close the AutoProject.rc dialog box design form.Ĭlick ClassWizard on the View menu (or press CTRL+W). Modify it according to the instructions in the next two steps. The Dialog box "IDD_AUTOPROJECT_DIALOG" opens in the Visual Studio design/edit area. The New Project Information dialog box appears and indicates that the Classes to be created include: Application: CAutoProjectApp in AutoProject.h and AutoProject.cppĭialog: CAutoProjectDlg in AutoProject.h and AutoProjectDlg.cpp In step 1 of the MFC AppWizard, choose "Dialog Based" for the application type and then click Finish.


With Microsoft Developer Studio, start a new "MFC AppWizard (exe)" project named "AutoProject." This article parallels a Microsoft Knowledge Base article that describes the same process using Microsoft Visual Basic.
#How to mail merge labels from excel to word 2000 how to
This article demonstrates how to create and manipulate a Microsoft Word document using Automation from Microsoft Visual C++ and Microsoft Foundation Classes (MFC).
