I’m new to MFC and creating basically a “preferences” tool. This of course means that there is a lot of input from the user. I have several “pages”, each filled with a combination of text boxes and combo boxes, and I’m trying to figure out the best way to execute the DoDataExchange methods for each dialog class.
Of course, I could just go one by one, within each class for the different dialogs, but there must be a better/faster way. I really don’t want to have to write hundreds upon hundreds of DDX_… lines to set up my variables.
Any ideas? I could class them out and then just use a for-loop to pull the variables from an array or list, but I’m not sure how to do that with CWnd and stuff.
Just use the wizard, it will automatically map the variable name to the dialog: right click on the dialog and Add variable, no need to write them manually.