Visual C++ and MFC Programming 2nd Edition

(Martin Jones) #1

Visual C++ and MFC Fundamentals Chapter 20: List-Based Controls



  1. Change its Prompt to Process a new ice scream order\nNew

  2. Add an Event Handler to the New Order item associated with the document class:

  3. Implement the event as follows:


#include "stdafx.h"
#include "Clarksville Ice Scream1.h"

#include "ExerciseDoc.h"
#include "IceScreamOrderDlg.h"

...


void CExerciseDoc::OnFileNew()
{
// TODO: Add your command handler code here
CIceScreamOrderDlg Dlg;

Dlg.DoModal();
}


  1. Test the application and return to MSVC

Free download pdf