Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Cloning Dialogs in VS2005

Cloning Dialogs in VS2005

Scheduled Pinned Locked Moved C / C++ / MFC
c++questionlearning
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • G Offline
    G Offline
    Grahamfff
    wrote on last edited by
    #1

    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

    C 1 Reply Last reply
    0
    • G 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

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

      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++

      G 1 Reply Last reply
      0
      • C Cedric Moonen

        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++

        G Offline
        G Offline
        Grahamfff
        wrote on last edited by
        #3

        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

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups