The simple way to deal with this is to let MFC help you.

If you set the group style to the first radio button, and then create an INT DDX variable using the "Add variable" option, MFC will track...