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. CHANGE COLOR

CHANGE COLOR

Scheduled Pinned Locked Moved C / C++ / MFC
tutorial
17 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.
  • H Hamid Taebi

    See http://www.codeproject.com/tabctrl/customtab.asp[^]_**


    **_

    whitesky


    Y Offline
    Y Offline
    yogendra kaushik
    wrote on last edited by
    #8

    i am sorry for interrupting you all but i want to know how to change color on clicking tab as i dont know this from article i try this one what it gives error i try this code in on init dialog where m_tabctrl is variable ofCTabctrl; m_tabctrl.SubclassDlgItem(CPropertySheet::GetTabControl()->GetDlgCtrlID(), this); now tell me how can i use this one yogi thanks Please mail me

    H 2 Replies Last reply
    0
    • Y yogendra kaushik

      i am sorry for interrupting you all but i want to know how to change color on clicking tab as i dont know this from article i try this one what it gives error i try this code in on init dialog where m_tabctrl is variable ofCTabctrl; m_tabctrl.SubclassDlgItem(CPropertySheet::GetTabControl()->GetDlgCtrlID(), this); now tell me how can i use this one yogi thanks Please mail me

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

      What error?_**


      **_

      whitesky


      1 Reply Last reply
      0
      • Y yogendra kaushik

        i am sorry for interrupting you all but i want to know how to change color on clicking tab as i dont know this from article i try this one what it gives error i try this code in on init dialog where m_tabctrl is variable ofCTabctrl; m_tabctrl.SubclassDlgItem(CPropertySheet::GetTabControl()->GetDlgCtrlID(), this); now tell me how can i use this one yogi thanks Please mail me

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

        See http://www.codeproject.com/tabctrl/customtab.asp[^]_**


        **_

        whitesky


        Y 1 Reply Last reply
        0
        • H Hamid Taebi

          Hope I understood your question Do you need to change background color from button?_**


          **_

          whitesky


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

          |------| |----------------------| | color here | | | |----------------------| I want the tab ctrl to look like this. How can I do it:confused:

          H 1 Reply Last reply
          0
          • H Hamid Taebi

            See http://www.codeproject.com/tabctrl/customtab.asp[^]_**


            **_

            whitesky


            Y Offline
            Y Offline
            yogendra kaushik
            wrote on last edited by
            #12

            ya sir i saw this link but when i write code in oninit as m_tabctrl.SubclassDlgItem(CPropertySheet::GetTabControl()->GetDlgCtrlID(), this); it will give errors as 1)'CPropertySheet::GetTabControl' : illegal call of non-static member function 2)left of '->GetDlgCtrlID' must point to class/struct/union yogi thanks Please mail me

            H D 2 Replies Last reply
            0
            • Y yogendra kaushik

              ya sir i saw this link but when i write code in oninit as m_tabctrl.SubclassDlgItem(CPropertySheet::GetTabControl()->GetDlgCtrlID(), this); it will give errors as 1)'CPropertySheet::GetTabControl' : illegal call of non-static member function 2)left of '->GetDlgCtrlID' must point to class/struct/union yogi thanks Please mail me

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

              and this CTabCtrl *p=CPropertySheet::GetTabControl() m_tabctrl.SubclassDlgItem(p->GetDlgCtrlID(), this);_**


              **_

              whitesky


              Y 1 Reply Last reply
              0
              • H Hamid Taebi

                and this CTabCtrl *p=CPropertySheet::GetTabControl() m_tabctrl.SubclassDlgItem(p->GetDlgCtrlID(), this);_**


                **_

                whitesky


                Y Offline
                Y Offline
                yogendra kaushik
                wrote on last edited by
                #14

                ya sir i try this one CTabCtrl *p=CPropertySheet::GetTabControl(); m_tabctrl.SubclassDlgItem(p->GetDlgCtrlID(), this but this has the erroras CPropertySheet::GetTabControl' : illegal call of non-static member function Please mail me

                1 Reply Last reply
                0
                • Y yogendra kaushik

                  ya sir i saw this link but when i write code in oninit as m_tabctrl.SubclassDlgItem(CPropertySheet::GetTabControl()->GetDlgCtrlID(), this); it will give errors as 1)'CPropertySheet::GetTabControl' : illegal call of non-static member function 2)left of '->GetDlgCtrlID' must point to class/struct/union yogi thanks Please mail me

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

                  yogendra kaushik wrote:

                  1)'CPropertySheet::GetTabControl' : illegal call of non-static member function

                  The compiler is telling you exactly what the problem is. CPropertySheet::GetTabControl() is not a static method.


                  "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
                  • A anu_88

                    |------| |----------------------| | color here | | | |----------------------| I want the tab ctrl to look like this. How can I do it:confused:

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

                    Im sorry i dont understand what do you said this sahpe is like a TreeCtrl_**


                    **_

                    whitesky


                    A 1 Reply Last reply
                    0
                    • H Hamid Taebi

                      Im sorry i dont understand what do you said this sahpe is like a TreeCtrl_**


                      **_

                      whitesky


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

                      ___________ |tab1|tab2| |============| |****color*****| |****here***** | |=============| -- modified at 0:45 Thursday 20th July, 2006

                      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