1. Using the Class Wizard, on the Message Maps tab, select the OnInit Dialog function in the list of member functions. You can do this by finding the function in the Member Functions list, or by selecting the C Day2 Dlg object in the list of object IDs and then selecting the WM_INITDIALOG message in the messages list, as shown in Figure 2.9. 34 Day 2 FIGURE 2.9.
You can use the Class Wizard to locate existing functions.