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. question about tab control

question about tab control

Scheduled Pinned Locked Moved C / C++ / MFC
tutorialquestionhelp
6 Posts 2 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.
  • F Offline
    F Offline
    firebolt77
    wrote on last edited by
    #1

    hi all...I have troubles in accessing and editing the tab control member's attributes. I've followed the codeproject article on making the tab control application(which is creating a new class for example CMyTabCtrl derived from CTabCtrl and inserted with other classes for exmaple CTabOne,CTabTwo,etc). How to access the CTabOne attributes(for example its edit box)? Does anyone can help me?From where I can access to CTabOne attributes?Is it from the Main Dialog Class, CMyTabCtrl, or from the CTabOne directly?Pls help...

    C 1 Reply Last reply
    0
    • F firebolt77

      hi all...I have troubles in accessing and editing the tab control member's attributes. I've followed the codeproject article on making the tab control application(which is creating a new class for example CMyTabCtrl derived from CTabCtrl and inserted with other classes for exmaple CTabOne,CTabTwo,etc). How to access the CTabOne attributes(for example its edit box)? Does anyone can help me?From where I can access to CTabOne attributes?Is it from the Main Dialog Class, CMyTabCtrl, or from the CTabOne directly?Pls help...

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      This question is about a specific wrapper class, so you should be asking the article author. Broadly, the CTabOne class will have an instance in your tab control class probably, which means you need it should be accessible from there. It's accesible from whatever class contains it. Christian Graus - Microsoft MVP - C++

      F 1 Reply Last reply
      0
      • C Christian Graus

        This question is about a specific wrapper class, so you should be asking the article author. Broadly, the CTabOne class will have an instance in your tab control class probably, which means you need it should be accessible from there. It's accesible from whatever class contains it. Christian Graus - Microsoft MVP - C++

        F Offline
        F Offline
        firebolt77
        wrote on last edited by
        #3

        How to access it. I'm making a member variable for the edit box. How to access the member variable? I'm making a program that has tree control and tab control. If I click the tree attributes, the tab control content will change according to the selected tree item. But I'm so confused. pls help...

        C 1 Reply Last reply
        0
        • F firebolt77

          How to access it. I'm making a member variable for the edit box. How to access the member variable? I'm making a program that has tree control and tab control. If I click the tree attributes, the tab control content will change according to the selected tree item. But I'm so confused. pls help...

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          Your member variables should not be public. Make a public method on the class that you can call. I'd say at a guess that the pages are in this wrapper class as instances of hte base class, if so, you need to find the right one and cast it to get access to your custom properties and methods. But like I say, I don't know what article code you're using, so you should ask the author. Christian Graus - Microsoft MVP - C++

          F 1 Reply Last reply
          0
          • C Christian Graus

            Your member variables should not be public. Make a public method on the class that you can call. I'd say at a guess that the pages are in this wrapper class as instances of hte base class, if so, you need to find the right one and cast it to get access to your custom properties and methods. But like I say, I don't know what article code you're using, so you should ask the author. Christian Graus - Microsoft MVP - C++

            F Offline
            F Offline
            firebolt77
            wrote on last edited by
            #5

            ok..will try it. The problem is, I forgot who is the author(I've download the source code,but in the source code, he didn't put his name but his email ben@shido.fsnet.co.uk) :) thx.

            C 1 Reply Last reply
            0
            • F firebolt77

              ok..will try it. The problem is, I forgot who is the author(I've download the source code,but in the source code, he didn't put his name but his email ben@shido.fsnet.co.uk) :) thx.

              C Offline
              C Offline
              Christian Graus
              wrote on last edited by
              #6

              Try searching the articles for a class name from the project. Christian Graus - Microsoft MVP - C++

              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