control chnages in a dialog MFC
Posted on 2010-01-11
Suppose I have a dialog with numerous controls in it e.g. edit boxes, radio buttons, check boxes.
Is there a simple way for me to find out if the dialog is opened, controls modified e.g. values in edit boxes changed or radio button selections changed, and then closed. That is, is there a way to determine whether values or changed or not during the opening and closing of the dialog?
I could of course look at the OnChange message for each control in the dialog but if there are many controls this maybe difficult and time consuming. It also doesn't deal with the issue of changing a value and then re-setting it to its original before leaving the dialog i.e. no changes have been made.