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. Changing From Dialog to Tab

Changing From Dialog to Tab

Scheduled Pinned Locked Moved C / C++ / MFC
questionjson
4 Posts 4 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.
  • N Offline
    N Offline
    novicedude
    wrote on last edited by
    #1

    Hi, I have created an application which consists of dialog boxes corresponding to the various options. Presently i call each dialog box on the click of a particular button. Now i want to use a tabbed structure instead of buttons. How can i do that. One possible way is to change the base class of the dialog objects from CDialog to CPropertySheet & then use the AddPage api to display the dialog. But how do i redefine the base class?

    T A 2 Replies Last reply
    0
    • N novicedude

      Hi, I have created an application which consists of dialog boxes corresponding to the various options. Presently i call each dialog box on the click of a particular button. Now i want to use a tabbed structure instead of buttons. How can i do that. One possible way is to change the base class of the dialog objects from CDialog to CPropertySheet & then use the AddPage api to display the dialog. But how do i redefine the base class?

      T Offline
      T Offline
      toxcct
      wrote on last edited by
      #2

      class CmyClass : public CDialog CPropertySheet {
      //...
      };

      like this ?:confused:


      TOXCCT >>> GEII power

      S 1 Reply Last reply
      0
      • T toxcct

        class CmyClass : public CDialog CPropertySheet {
        //...
        };

        like this ?:confused:


        TOXCCT >>> GEII power

        S Offline
        S Offline
        Sujan Christo
        wrote on last edited by
        #3

        Hi This may work, but MUST HAVE TO CHANGE THE STYLE of the dialog template(THIN etc) Sujan

        1 Reply Last reply
        0
        • N novicedude

          Hi, I have created an application which consists of dialog boxes corresponding to the various options. Presently i call each dialog box on the click of a particular button. Now i want to use a tabbed structure instead of buttons. How can i do that. One possible way is to change the base class of the dialog objects from CDialog to CPropertySheet & then use the AddPage api to display the dialog. But how do i redefine the base class?

          A Offline
          A Offline
          Anonymous
          wrote on last edited by
          #4

          anless change name of base class from CDialog to CPropertyPage u need to change in macross to (IMPLEMENT_DYNAMIC(..., CPropertyPage) and in BEGIN_MESSAGE_MAP(..., CPropertyPage) and change anywhere in code where is use base class :) After that u must create object from CPropertySheet to wich you add your dialogs .... and it wil work :)

          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