Each of the new Record menu commands needs a command handler function in the CSectionForm
class. Since the Enroll menu resource is associated with the CMainFrame
class, you must make an association between the menu IDs and the CSectionForm
class. You do this by giving focus to the IDR_MAINFRAME resource (accelerator or menu) so ClassWizard can glean the available command IDs from the resource.
To create handlers for the commands
Notice that the CMainFrame
class is automatically selected.
ID_RECORD_ADD
command ID; in the Messages box, select COMMAND
; and then click Add Function to create a command handler function.
Accept the default handler name: OnRecordAdd
.
ID_RECORD_DELETE
and ID_RECORD_REFRESH
command IDs.You can also close the resource editors at this point.
You will fill in the command handlers in later topics.