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. problem using tab control

problem using tab control

Scheduled Pinned Locked Moved C / C++ / MFC
help
5 Posts 3 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.
  • M Offline
    M Offline
    Member 117293
    wrote on last edited by
    #1

    :confused:Hi everyone I'm developing an application, and in that application i added a dialog on his right, this dialog have a tab control on it. The problem is that i can not see the tabs on the dialog when i add more tabs, only appear the tab control with no tabs. thanks

    D M 2 Replies Last reply
    0
    • M Member 117293

      :confused:Hi everyone I'm developing an application, and in that application i added a dialog on his right, this dialog have a tab control on it. The problem is that i can not see the tabs on the dialog when i add more tabs, only appear the tab control with no tabs. thanks

      D Offline
      D Offline
      Dor
      wrote on last edited by
      #2

      Hi there, When ever ive used tab control, ive used something similar to the following code: CTabCtrl m_MainTabCtrl; TC_ITEM TabCtrlItem; TabCtrlItem.mask = TCIF_TEXT; TabCtrlItem.pszText = "Tab1"; m_MainTabCtrl.InsertItem( FILE_RESULTS_VIEW, &TabCtrlItem ); TabCtrlItem.pszText = "Tab2"; m_MainTabCtrl.InsertItem(FILE_SCAN_VIEW , &TabCtrlItem); This will show the Tabs only, I then insert a CDialog and show and hide the dialog as needed by the tabs. Hope this helps.

      M 1 Reply Last reply
      0
      • M Member 117293

        :confused:Hi everyone I'm developing an application, and in that application i added a dialog on his right, this dialog have a tab control on it. The problem is that i can not see the tabs on the dialog when i add more tabs, only appear the tab control with no tabs. thanks

        M Offline
        M Offline
        Mangesh Sardesai
        wrote on last edited by
        #3

        Use the CTabCtrl::InsertItem to create the tabs... :) regards M$

        1 Reply Last reply
        0
        • D Dor

          Hi there, When ever ive used tab control, ive used something similar to the following code: CTabCtrl m_MainTabCtrl; TC_ITEM TabCtrlItem; TabCtrlItem.mask = TCIF_TEXT; TabCtrlItem.pszText = "Tab1"; m_MainTabCtrl.InsertItem( FILE_RESULTS_VIEW, &TabCtrlItem ); TabCtrlItem.pszText = "Tab2"; m_MainTabCtrl.InsertItem(FILE_SCAN_VIEW , &TabCtrlItem); This will show the Tabs only, I then insert a CDialog and show and hide the dialog as needed by the tabs. Hope this helps.

          M Offline
          M Offline
          Member 117293
          wrote on last edited by
          #4

          Hi´ Look all the above code i've done it before i post my message, but it just doesn't work. when i try to put a tab in a dialog app it work. An example of my app is the msdn , with a tab in the left.

          D 1 Reply Last reply
          0
          • M Member 117293

            Hi´ Look all the above code i've done it before i post my message, but it just doesn't work. when i try to put a tab in a dialog app it work. An example of my app is the msdn , with a tab in the left.

            D Offline
            D Offline
            Dor
            wrote on last edited by
            #5

            All i know is that i created a dialog box, then put a tab control in that. You have to make sure that you create and show the dialog that holds the tab. I don't know what else to say sorry. The only way i can help you further is to see your code. Dor

            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