To examine the source code for class CSectionForm
OnInitialUpdate
member function of class CSectionForm
.
SectionForm.cpp opens inside the text editor, with your cursor just before the OnInitialUpdate
member function:
void CSectionForm::OnInitialUpdate()
{
m_pSet = &GetDocument()->m_sectionSet;
CRecordView::OnInitialUpdate();
}
The base class function CRecordView::OnInitialUpdate opens the database if not already open, opens the recordset.
For now, the “form” represented by class CSectionForm
is empty of controls. Later, in Customizing the Dialog Template for the Section Form, you’ll use the dialog editor to design the form and to map controls on the form to the recordset.