I have created a dialog box (cMyDialog). I am planning to duplicate cMyDialog and called it cMyDialog2. Can I know in MFC, how can I do inheritance? I want the cMyDialog2 to inherit all the IDDs from cMyDialog1 so that I do not have to copy and paste the codes from cMyDialog1 and cMyDialog2. The purpose of cMyDialog2 is to inherit all the functions from cMyDialog1 so that I do not have to redefine the functions in cMyDialog2 again and to add some extra functions in it.
thank you very much in advance for your help and advices