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. Delete tab

Delete tab

Scheduled Pinned Locked Moved C / C++ / MFC
comtutorialquestion
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.
  • A Offline
    A Offline
    antonio343
    wrote on last edited by
    #1

    Hi, I have an app that has two tab, "informes" and "variables", but I have to delete the informes tab becouse now it is not used. The code isn't me, and due to it, I don't know how to delete the tab. This is the app. http://i42.tinypic.com/2bwfiu.png I think that the tab is created in Ftab file, but I dont know where. http://www.megaupload.com/?d=UDMM3WC5[^]

    enhzflepE D 2 Replies Last reply
    0
    • A antonio343

      Hi, I have an app that has two tab, "informes" and "variables", but I have to delete the informes tab becouse now it is not used. The code isn't me, and due to it, I don't know how to delete the tab. This is the app. http://i42.tinypic.com/2bwfiu.png I think that the tab is created in Ftab file, but I dont know where. http://www.megaupload.com/?d=UDMM3WC5[^]

      enhzflepE Offline
      enhzflepE Offline
      enhzflep
      wrote on last edited by
      #2

      Paul DiLascia wrote:

      // Copyright 1999 Paul DiLascia // If this program works, it was written by Paul DiLascia. // If not, I don't know who wrote it.

      As read in FTab.cpp/.h +10 :laugh: :laugh: I'd guess that the 'informes' tab is created(added to the list of tabs) with CFolderTabCtrl::AddItem or perhaps they're all loaded at once from a resource, via the CFolderTabCtrl::Load method. If you have the source, I'd simply search for 'informes' - I'd check the resources too. Failing that - if you have a debug build, I'd get Ida Pro Advanced (you can get a free-version) and analyse the exe file, looking for either (a) references to the string 'informes' or (b) references to any/all functions in the CFolderTabCtrl class.

      1 Reply Last reply
      0
      • A antonio343

        Hi, I have an app that has two tab, "informes" and "variables", but I have to delete the informes tab becouse now it is not used. The code isn't me, and due to it, I don't know how to delete the tab. This is the app. http://i42.tinypic.com/2bwfiu.png I think that the tab is created in Ftab file, but I dont know where. http://www.megaupload.com/?d=UDMM3WC5[^]

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

        Is this a property sheet/page arrangement? Have you checked the sheet's constructor?

        "One man's wage rise is another man's price increase." - Harold Wilson

        "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

        "Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous

        A 1 Reply Last reply
        0
        • D David Crow

          Is this a property sheet/page arrangement? Have you checked the sheet's constructor?

          "One man's wage rise is another man's price increase." - Harold Wilson

          "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

          "Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous

          A Offline
          A Offline
          antonio343
          wrote on last edited by
          #4

          Yes I cheked, and I think that here there aren't any to indicate the number of tab.

          In " AdestView.cpp" there is a function that call one function of this file:

          [code]
          void CAdestView::OnUpdate(CView* /*pSender*/, LPARAM /*lHint*/, CObject* /*pHint*/)
          {
          ........
          ....
          ...
          if (!m_wndFolderTab.GetItemCount ())
          {

          		// Si no tiene ningún elemento es porque todavía no se ha creado
          		// Inserto las dos tabulaciones
                             //insert two tab
          		m\_wndFolderTab.CreateFromStatic (IDC\_FOLDERTAB, this);
          		m\_wndFolderTab.Load (IDR\_FOLDERTABS);
          		f = m\_Lista.GetFont ();
          		// Actualizo la fuente de las tabulaciones
          		m\_wndFolderTab.SetFonts (f,f);
          	}
          

          ...
          ...
          [/code]

          But I don't know how to create only one tab and not two

          D 1 Reply Last reply
          0
          • A antonio343

            Yes I cheked, and I think that here there aren't any to indicate the number of tab.

            In " AdestView.cpp" there is a function that call one function of this file:

            [code]
            void CAdestView::OnUpdate(CView* /*pSender*/, LPARAM /*lHint*/, CObject* /*pHint*/)
            {
            ........
            ....
            ...
            if (!m_wndFolderTab.GetItemCount ())
            {

            		// Si no tiene ningún elemento es porque todavía no se ha creado
            		// Inserto las dos tabulaciones
                               //insert two tab
            		m\_wndFolderTab.CreateFromStatic (IDC\_FOLDERTAB, this);
            		m\_wndFolderTab.Load (IDR\_FOLDERTABS);
            		f = m\_Lista.GetFont ();
            		// Actualizo la fuente de las tabulaciones
            		m\_wndFolderTab.SetFonts (f,f);
            	}
            

            ...
            ...
            [/code]

            But I don't know how to create only one tab and not two

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

            antonio343 wrote:

            But I don't know how to create only one tab and not two

            Have you looked for the IDR_FOLDERTABS resource (which I think is a newline-separated list of tab names)?

            "One man's wage rise is another man's price increase." - Harold Wilson

            "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

            "Show me a community that obeys the Ten Commandments and I'll show you a less crowded prison system." - Anonymous

            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