To add the message handler to the "Load" button
-
go to
View\ClassWizard
, Message Maps.
-
Click on "ID_LOAD" in the "Object IDs" section.
-
Click on "BN_CLICKED" in the "Messages" section.
-
Click on "Add Function" button.
The "Add Member Function" menu pops up.
Accept the default name "OnLoad" . Click "OK".