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. How to use form view in tab control

How to use form view in tab control

Scheduled Pinned Locked Moved C / C++ / MFC
tutorial
16 Posts 4 Posters 1 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.
  • S Offline
    S Offline
    sireesha_sree
    wrote on last edited by
    #1

    Hi can u suggest me how to use a form view in tab control.I have done using dialogs in tab control for each tab item Thanks, Sireesha

    N 1 Reply Last reply
    0
    • S sireesha_sree

      Hi can u suggest me how to use a form view in tab control.I have done using dialogs in tab control for each tab item Thanks, Sireesha

      N Offline
      N Offline
      Naveen
      wrote on last edited by
      #2

      Why you want to use form view instead of a dialog? What feature do you expected doing so?

      nave

      S 1 Reply Last reply
      0
      • N Naveen

        Why you want to use form view instead of a dialog? What feature do you expected doing so?

        nave

        S Offline
        S Offline
        sireesha_sree
        wrote on last edited by
        #3

        My application is like... I need to get a vertical scroll bar when the size of the dialog increases.this should not increase the size of tab control is there any way of doing that

        L N 2 Replies Last reply
        0
        • S sireesha_sree

          My application is like... I need to get a vertical scroll bar when the size of the dialog increases.this should not increase the size of tab control is there any way of doing that

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          is your dialog size increasing dynamically?

          S 1 Reply Last reply
          0
          • S sireesha_sree

            My application is like... I need to get a vertical scroll bar when the size of the dialog increases.this should not increase the size of tab control is there any way of doing that

            N Offline
            N Offline
            Naveen
            wrote on last edited by
            #5

            ok..I will suggest your a mehtod to this in dialog itself. Specify the WS_VSROLL style fo the dislog that you added to tab Create another dialog as the child of the dialog that you add to tab control. you should put all the control in the second dialog. So when use clicks on the scroll button, just move the innner dialog up or down specify the WS_VSROLL style if you want to scroll dialog horizontally use Setscrollinfo funtion in the begining to set the scroll bar sizes

            nave

            M S 2 Replies Last reply
            0
            • L Lost User

              is your dialog size increasing dynamically?

              S Offline
              S Offline
              sireesha_sree
              wrote on last edited by
              #6

              yes,the dialog size should be increased dynamically.

              L 1 Reply Last reply
              0
              • N Naveen

                ok..I will suggest your a mehtod to this in dialog itself. Specify the WS_VSROLL style fo the dislog that you added to tab Create another dialog as the child of the dialog that you add to tab control. you should put all the control in the second dialog. So when use clicks on the scroll button, just move the innner dialog up or down specify the WS_VSROLL style if you want to scroll dialog horizontally use Setscrollinfo funtion in the begining to set the scroll bar sizes

                nave

                M Offline
                M Offline
                megha_gharote
                wrote on last edited by
                #7

                Hello Friends, I also want to use Form view in a Tab Control. My problem is we have developed the code using From view. And used menu bar for different screens. Now we got a requirement form client tht they want Tab Controls instead of Menus.. I tried many things but its not working.. Can u tell me whether we can add form view in a Tab Control or not???? Megha

                N 1 Reply Last reply
                0
                • M megha_gharote

                  Hello Friends, I also want to use Form view in a Tab Control. My problem is we have developed the code using From view. And used menu bar for different screens. Now we got a requirement form client tht they want Tab Controls instead of Menus.. I tried many things but its not working.. Can u tell me whether we can add form view in a Tab Control or not???? Megha

                  N Offline
                  N Offline
                  Naveen
                  wrote on last edited by
                  #8

                  Just change the form view to CDialog add to the Tab control. If you too want scroll, just try the method I suggested in the previous post.

                  nave

                  1 Reply Last reply
                  0
                  • N Naveen

                    ok..I will suggest your a mehtod to this in dialog itself. Specify the WS_VSROLL style fo the dislog that you added to tab Create another dialog as the child of the dialog that you add to tab control. you should put all the control in the second dialog. So when use clicks on the scroll button, just move the innner dialog up or down specify the WS_VSROLL style if you want to scroll dialog horizontally use Setscrollinfo funtion in the begining to set the scroll bar sizes

                    nave

                    S Offline
                    S Offline
                    sireesha_sree
                    wrote on last edited by
                    #9

                    thanks for the suggestion.... I have a doubt ..which dialog will be shown to the user initially --the dialog having the scroll bar or the child dialog having all the controls. If it is the dialog having the vertical scroll bar then the controls will not be shown to the user until the sroll bar is clicked

                    L N 2 Replies Last reply
                    0
                    • S sireesha_sree

                      yes,the dialog size should be increased dynamically.

                      L Offline
                      L Offline
                      Lost User
                      wrote on last edited by
                      #10

                      hey i will try getting a better solution in while u just make the vertical scroll property true

                      1 Reply Last reply
                      0
                      • S sireesha_sree

                        thanks for the suggestion.... I have a doubt ..which dialog will be shown to the user initially --the dialog having the scroll bar or the child dialog having all the controls. If it is the dialog having the vertical scroll bar then the controls will not be shown to the user until the sroll bar is clicked

                        L Offline
                        L Offline
                        Lost User
                        wrote on last edited by
                        #11

                        you can set which tab should be the default dialog like setDefaultPage(0); if that is there in ur code

                        M 1 Reply Last reply
                        0
                        • L Lost User

                          you can set which tab should be the default dialog like setDefaultPage(0); if that is there in ur code

                          M Offline
                          M Offline
                          megha_gharote
                          wrote on last edited by
                          #12

                          guys please answer my query.. really in need of help

                          L N 2 Replies Last reply
                          0
                          • S sireesha_sree

                            thanks for the suggestion.... I have a doubt ..which dialog will be shown to the user initially --the dialog having the scroll bar or the child dialog having all the controls. If it is the dialog having the vertical scroll bar then the controls will not be shown to the user until the sroll bar is clicked

                            N Offline
                            N Offline
                            Naveen
                            wrote on last edited by
                            #13

                            both dialog :) assume --outer dialog is the dialog having the the scroll bar style --innner dialog have the controls You can create the innner dialog from the OnInitdialog function of the outer dialog. Also you must set the SetScrollinfo of the outerdialog from this funtion it self. you must process the WM_HSCROLL and WM_VSCROLL messages and move the inner dialog from this functions.

                            nave

                            S 1 Reply Last reply
                            0
                            • N Naveen

                              both dialog :) assume --outer dialog is the dialog having the the scroll bar style --innner dialog have the controls You can create the innner dialog from the OnInitdialog function of the outer dialog. Also you must set the SetScrollinfo of the outerdialog from this funtion it self. you must process the WM_HSCROLL and WM_VSCROLL messages and move the inner dialog from this functions.

                              nave

                              S Offline
                              S Offline
                              sireesha_sree
                              wrote on last edited by
                              #14

                              thank u guys.... i ll try this out

                              1 Reply Last reply
                              0
                              • M megha_gharote

                                guys please answer my query.. really in need of help

                                L Offline
                                L Offline
                                Lost User
                                wrote on last edited by
                                #15

                                i have not added a form view in a tab pane but i believe you can add it in the same manner as you add dialog like m_oPhoneBook.Create(IDD_PhoneBook); just creat a private variable of the form view and in place of the dialog id put the form view id

                                1 Reply Last reply
                                0
                                • M megha_gharote

                                  guys please answer my query.. really in need of help

                                  N Offline
                                  N Offline
                                  Naveen
                                  wrote on last edited by
                                  #16

                                  megha_gharote wrote:

                                  guys please answer my query..

                                  didn't I? Read the thread from the begining...

                                  nave

                                  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