Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Tab Control and Tab Item Help

Posted on 1998-12-21
2
Medium Priority
?
226 Views
Last Modified: 2013-11-20
i'm using this in my oncreate handler

if (!m_TabCtrl.Create( WS_CHILD | WS_VISIBLE, CRect( 0, 0, 0, 0), this , IDC_TAB_CTRL))
{
   TRACE0("Failed to create view for CResultsPanel\n");
   return -1;
}
m_TabCtrl.ModifyStyleEx(0, ~WS_EX_WINDOWEDGE );

if (!TabFont.CreatePointFont( 80, "Arial", NULL ))
{
   TRACE0("Failed to create view for CResultsPanel\n");
   return -1;
}

m_TabCtrl.SetFont( &TabFont, TRUE );

TabItem.mask = TCIF_TEXT;
TabItem.pszText = _T("Erros");
m_TabCtrl.InsertItem( 0, &TabItem );
TabItem.pszText = _T("Resultados");
m_TabCtrl.InsertItem( 1, &TabItem );


the problem is that i cant change the font of the tabs, and everything goes ok, the control is displayed but with the default font
0
Comment
Question by:PedroG
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 200 total points
ID: 1326526
Where is TabFont declared? It doesn't appear to be a member data. If this is the case, then when the function leaves, the font is automatically destroyed. Make it a member of the class and it should work.
0
 
LVL 2

Author Comment

by:PedroG
ID: 1326527
is there any whay to show the tabs in the bottom insted of the top side tha is usual
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
In this post we will learn different types of Android Layout and some basics of an Android App.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
Suggested Courses

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question