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. TAB CONTROL

TAB CONTROL

Scheduled Pinned Locked Moved C / C++ / MFC
tutorial
11 Posts 6 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.
  • A ashish dogra

    HI I WANT TO KNOW ABT TAB CONTROL. I READ IN MSDN BUT IN THAT THEY CREATE TABCONTROL WITH CREATE STATEMENT BUT I USE IT FROM CONTROLS AND NOW I WANT TO USE THIS BUT IT SHOW NO TAB ONIT .HOW TO USE TAB CONTROL THANKS Ashish Dogra MCA Noida

    M Offline
    M Offline
    mimimimilaw
    wrote on last edited by
    #2

    http://www.codeproject.com/tabctrl/[^]

    1 Reply Last reply
    0
    • A ashish dogra

      HI I WANT TO KNOW ABT TAB CONTROL. I READ IN MSDN BUT IN THAT THEY CREATE TABCONTROL WITH CREATE STATEMENT BUT I USE IT FROM CONTROLS AND NOW I WANT TO USE THIS BUT IT SHOW NO TAB ONIT .HOW TO USE TAB CONTROL THANKS Ashish Dogra MCA Noida

      A Offline
      A Offline
      ashish dogra
      wrote on last edited by
      #3

      as i use three tabs now when i click on one color changed where i put code for this or what function i have to use Ashish Dogra MCA Noida

      A 1 Reply Last reply
      0
      • A ashish dogra

        HI I WANT TO KNOW ABT TAB CONTROL. I READ IN MSDN BUT IN THAT THEY CREATE TABCONTROL WITH CREATE STATEMENT BUT I USE IT FROM CONTROLS AND NOW I WANT TO USE THIS BUT IT SHOW NO TAB ONIT .HOW TO USE TAB CONTROL THANKS Ashish Dogra MCA Noida

        H Offline
        H Offline
        Hamid Taebi
        wrote on last edited by
        #4

        What do you need and what do you want?_**


        **_

        whitesky


        A 1 Reply Last reply
        0
        • H Hamid Taebi

          What do you need and what do you want?_**


          **_

          whitesky


          A Offline
          A Offline
          ashish dogra
          wrote on last edited by
          #5

          i use tab control and now when i click on one tab it change color to red if i click on second tab itm give color blue now i made tabs by doing coding in oninitdialog function now in which function i need to change color i use foolowing code m_tab.InsertItem(0,"BLACKRECT"); m_tab.InsertItem(1,"GRAY"); m_tab.InsertItem(2,"WHITERECT"); m_tab.SetCurSel(1); Ashish Dogra MCA Noida

          H D 2 Replies Last reply
          0
          • A ashish dogra

            i use tab control and now when i click on one tab it change color to red if i click on second tab itm give color blue now i made tabs by doing coding in oninitdialog function now in which function i need to change color i use foolowing code m_tab.InsertItem(0,"BLACKRECT"); m_tab.InsertItem(1,"GRAY"); m_tab.InsertItem(2,"WHITERECT"); m_tab.SetCurSel(1); Ashish Dogra MCA Noida

            H Offline
            H Offline
            Hamid Taebi
            wrote on last edited by
            #6

            Are you using derived class?_**


            **_

            whitesky


            A 1 Reply Last reply
            0
            • H Hamid Taebi

              Are you using derived class?_**


              **_

              whitesky


              A Offline
              A Offline
              ashish dogra
              wrote on last edited by
              #7

              no iam not using derived class i am using cmydlg class . Ashish Dogra MCA Noida

              C 1 Reply Last reply
              0
              • A ashish dogra

                no iam not using derived class i am using cmydlg class . Ashish Dogra MCA Noida

                C Offline
                C Offline
                Cool Ju
                wrote on last edited by
                #8

                :-D Cool Ju :cool:

                A 1 Reply Last reply
                0
                • A ashish dogra

                  as i use three tabs now when i click on one color changed where i put code for this or what function i have to use Ashish Dogra MCA Noida

                  A Offline
                  A Offline
                  anu_88
                  wrote on last edited by
                  #9

                  as i use three tabs now when i click on one color changed where i put code for this or what function i have to use If you want to change the color handle the OnSelChange message handler void Ctabeg::OnSelchangeTab1(NMHDR* pNMHDR, LRESULT* pResult) { // TODO: Add your control notification handler code here *pResult = 0; } -- modified at 7:06 Tuesday 18th July, 2006

                  1 Reply Last reply
                  0
                  • C Cool Ju

                    :-D Cool Ju :cool:

                    A Offline
                    A Offline
                    ashish dogra
                    wrote on last edited by
                    #10

                    :sigh::zzz::->:~ :confused: Ashish Dogra MCA Noida

                    1 Reply Last reply
                    0
                    • A ashish dogra

                      i use tab control and now when i click on one tab it change color to red if i click on second tab itm give color blue now i made tabs by doing coding in oninitdialog function now in which function i need to change color i use foolowing code m_tab.InsertItem(0,"BLACKRECT"); m_tab.InsertItem(1,"GRAY"); m_tab.InsertItem(2,"WHITERECT"); m_tab.SetCurSel(1); Ashish Dogra MCA Noida

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

                      Why would you think that calling the InsertItem() method would have any effect on the control's color? :rolleyes:


                      "Money talks. When my money starts to talk, I get a bill to shut it up." - Frank

                      "Judge not by the eye but by the heart." - Native American Proverb

                      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