Cloning Dialogs in VS2005
-
In a C++ MFC application I have a Main dialog and several child dialogs. Now one of these child dialogs I used the Tabbed Dialog (CTabDialog - which had a main dialog and a dialog for each TAB). This worked greatand it has loads of code associated with the many controls on these tabs. Now I would like to clone this dialog x2. What is the best way to try and do this? I am worried about the IDD/IDC etc in the resource.h file. I can do global exchange for many items in the code. Has anyone done this before or suggest the scheme to do this. Many thanks, Graham
grahamfff
-
In a C++ MFC application I have a Main dialog and several child dialogs. Now one of these child dialogs I used the Tabbed Dialog (CTabDialog - which had a main dialog and a dialog for each TAB). This worked greatand it has loads of code associated with the many controls on these tabs. Now I would like to clone this dialog x2. What is the best way to try and do this? I am worried about the IDD/IDC etc in the resource.h file. I can do global exchange for many items in the code. Has anyone done this before or suggest the scheme to do this. Many thanks, Graham
grahamfff
Why do you need to clone it ? Can't you simply reuse it ? :doh: Do you need different functionalities ? If yes, can't you simply make two classes inheriting from the same base class ?
Cédric Moonen Software developer
Charting control [v2.0] OpenGL game tutorial in C++ -
Why do you need to clone it ? Can't you simply reuse it ? :doh: Do you need different functionalities ? If yes, can't you simply make two classes inheriting from the same base class ?
Cédric Moonen Software developer
Charting control [v2.0] OpenGL game tutorial in C++The program controlled a hardware item, using a database and shared library. Now would like to control three items of hardware; which can be done OK. But need three instances of the GUI to control each h/w item. If was starting the scratch then could design a class for this scheme, but too late now. For ease and speed, clone the GUI and global change the code behind it. Graham.
grahamfff