Grouping Controls on a CAppDialog



I would like to have a group of controls on a CAppDialog that I can make visible/invisible and replace with another group of controls on the same CAppDialog. So, the main AppDialog would have a group of buttons below the caption that control which group of controls appear. AppDialog would also have a button at the bottom of the dialog that is always visible and allow any changes to the settings in the controls to be saved.

What is the recommended way to do this?

Thank you.