Multiple
Views
Task :
This program is an extension
of the previous task. The first and second names should be
entered in the dialog box and then displayed in a form
view as well as the original view.
Instructions :
- Design the form view (which
is a new class).
- Add member variables to the
edit boxes within this new view.
- In the Application
add a new template to the InitInstance()
function (a destructor is necessary to avoid any memory
leaks). A return function must also be added within the Application.
- Add a handler to the menu bar
to call this form view
- Add an OnDraw()
virtual function to the form view class.
- Add the OnInitialUpdate() and
OnUpdate() virtual functions to the form view class.
Help :
"Essential Visual C++
4" - Mickey Williams- pp 301-322
Click here for a worked example
Click here for the source code
Click here to return to menu