Tutorial 3
Due Tuesday, June 11 at the start of class
Hand in a printout for each file that you modify. Upload a ZIP file containing
your project: include the res directory, exclude the debug
and release directories.
Create the program for Ex16b. You will need to complete Ex16a first, then
continue modifying it to get Ex16b. Make the following additions to Ex16b.
-
Add your username to all member variables and easily modified names of member
functions and handlers.
-
Add a modify option to the student menu and toolbar. When selected, the current
record is replaced with the information from the dialog. Enable the modify
option only if one of the fields in the dialog has changed. You will need
to map the EN_CHANGE message for each control. Be sure that you delete the
old record that is being replaced. Examine the output of the Dump when you
close the program to see if you have any memory leaks.
-
Change the student record so that it contains
-
First Name
-
Last Name
-
GPA as a double
-
Credits as an integer
-
Add three indicators to the status bar: FIRST, LAST, MODIFIED. FIRST will
be displayed if the first record is displayed in the dialog. LAST will be
displayed if the last record is displayed in the dialog. MODIFIED will be
displayed if any dialog field has changed on the current page. Note: The
ON_UPDATE_COMMAND_UI messages for the status bar do not have to be
mapped in the main frame, they can be mapped in the view also.
-
When the user clicks the right mouse button on the background of the dialog
window, pop up the Student menu at the location of the mouse.