This initialization code is simple. You are setting an initial message in the edit box that you will use to display messages for the user. Next, you are setting all the check boxes to the checked state. It’s the last line of the code you added to this function that you really need to notice. The UpdateData function is the key to working with control variables in Visual C++.
This function takes the data in the variables and updates the controls on the screen with the variable values. It also takes the data from the controls and populates the attached