Visual C++ and MFC Fundamentals Chapter 20: List-Based Controls
- Change its Prompt to Process a new ice scream order\nNew
- Add an Event Handler to the New Order item associated with the document class:
- 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();
}
- Test the application and return to MSVC