Delete tab
-
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[^]
-
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[^]
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.
-
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[^]
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
-
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
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
-
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
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