Visual C++ and MFC Programming 2nd Edition

(Martin Jones) #1

Chapter 12: Dialog-Based Windows Visual C++ and MFC Fundamentals



  1. Click OK or Finish

  2. Change the source code of the CGeometryApp class as follows:


// Geometry.cpp : Defines the class behaviors for the application.
//

#include "stdafx.h"
#include "Geometry.h"
#include "Quadrilateral.h"
#include "GeomeSheet.h"
#include "Circular.h"
#include "Geome3D.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// CGeometryApp

BEGIN_MESSAGE_MAP(CGeometryApp, CWinApp)
//{{AFX_MSG_MAP(CGeometryApp)
//}}AFX_MSG
ON_COMMAND(ID_HELP, CWinApp::OnHelp)
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// CGeometryApp construction
Free download pdf