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. Howto Hide the tab captions

Howto Hide the tab captions

Scheduled Pinned Locked Moved C / C++ / MFC
10 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.
  • T Offline
    T Offline
    Tareq Ahmed Siraj
    wrote on last edited by
    #1

    Hi all, I am trying to hide the captoins of a tab control but cant seem to find any way to do this. Any kind of hints or pointers would be appreciated. Thanks. - tareq

    T D 2 Replies Last reply
    0
    • T Tareq Ahmed Siraj

      Hi all, I am trying to hide the captoins of a tab control but cant seem to find any way to do this. Any kind of hints or pointers would be appreciated. Thanks. - tareq

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

      SetWindowText("") should help ?


      TOXCCT >>> GEII power
      [toxcct][VisualCalc]

      T 1 Reply Last reply
      0
      • T toxcct

        SetWindowText("") should help ?


        TOXCCT >>> GEII power
        [toxcct][VisualCalc]

        T Offline
        T Offline
        Tareq Ahmed Siraj
        wrote on last edited by
        #3

        Thanks for your reply... but unfortunately this is not what i was looking for. This will still show the buttons there with no text on them... I just dont want to see those buttons there. - tareq

        T N 2 Replies Last reply
        0
        • T Tareq Ahmed Siraj

          Thanks for your reply... but unfortunately this is not what i was looking for. This will still show the buttons there with no text on them... I just dont want to see those buttons there. - tareq

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

          Tareq Ahmed Siraj wrote: This will still show the buttons there with no text on them yes, that is what i understood in your "I am trying to hide the captions of a tab control...". For me, the caption is the text associated with the button... well, what about ShowWindow(SW_HIDE); ?


          TOXCCT >>> GEII power
          [toxcct][VisualCalc]

          T 1 Reply Last reply
          0
          • T Tareq Ahmed Siraj

            Thanks for your reply... but unfortunately this is not what i was looking for. This will still show the buttons there with no text on them... I just dont want to see those buttons there. - tareq

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

            if u want to hide the button use.....ShowWindow(); eg: GetDlgItem(IDC_BUTTON1)->ShowWindow(FALSE);//TO HIDE GetDlgItem(IDC_BUTTON1)->ShowWindow(TRUE);//TO SHOW OR if u have declared an object linkeded to thiz control using ddx,then just use...... object.ShowWindow(FALSE) hope that helpz..... cheerz.....:-D "faith, hope, love remain, these three.....; but the greatest of these is love" -1 Corinthians 13:13

            T 1 Reply Last reply
            0
            • T toxcct

              Tareq Ahmed Siraj wrote: This will still show the buttons there with no text on them yes, that is what i understood in your "I am trying to hide the captions of a tab control...". For me, the caption is the text associated with the button... well, what about ShowWindow(SW_HIDE); ?


              TOXCCT >>> GEII power
              [toxcct][VisualCalc]

              T Offline
              T Offline
              Tareq Ahmed Siraj
              wrote on last edited by
              #6

              Sorry about the misunderstanding i've created. Let me be more specific. I havent done much programming with tab controls... I have a MFC tab control. I've got rid of the borders by setting the tab style to buttons. Now i have the tabs with buttons associated with them. Now i dont want even the buttons to be there. I want to control the tabs using SetCurSel()... no button clicks. Thanks in advance. - tareq

              1 Reply Last reply
              0
              • N namaskaaram

                if u want to hide the button use.....ShowWindow(); eg: GetDlgItem(IDC_BUTTON1)->ShowWindow(FALSE);//TO HIDE GetDlgItem(IDC_BUTTON1)->ShowWindow(TRUE);//TO SHOW OR if u have declared an object linkeded to thiz control using ddx,then just use...... object.ShowWindow(FALSE) hope that helpz..... cheerz.....:-D "faith, hope, love remain, these three.....; but the greatest of these is love" -1 Corinthians 13:13

                T Offline
                T Offline
                Tareq Ahmed Siraj
                wrote on last edited by
                #7

                How do i get the button id for a specific tab page? Thanks. - tareq

                N 1 Reply Last reply
                0
                • T Tareq Ahmed Siraj

                  How do i get the button id for a specific tab page? Thanks. - tareq

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

                  i believe teh buttonz have unique idz!you can get em from the property option of that button! "faith, hope, love remain, these three.....; but the greatest of these is love" -1 Corinthians 13:13

                  1 Reply Last reply
                  0
                  • T Tareq Ahmed Siraj

                    Hi all, I am trying to hide the captoins of a tab control but cant seem to find any way to do this. Any kind of hints or pointers would be appreciated. Thanks. - tareq

                    D Offline
                    D Offline
                    David Crow
                    wrote on last edited by
                    #9

                    See if MSDN article Q151662 is of any help.


                    "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

                    T 1 Reply Last reply
                    0
                    • D David Crow

                      See if MSDN article Q151662 is of any help.


                      "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

                      T Offline
                      T Offline
                      Tareq Ahmed Siraj
                      wrote on last edited by
                      #10

                      Thanks for a lot for your reply... I'll go through it. - tareq

                      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