Print Page | Close Window

Set Font for CXTTabCtrl

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Toolkit Pro
Forum Description: Topics Related to Codejock Toolkit Pro
URL: http://forum.codejock.com/forum_posts.asp?TID=229
Printed Date: 23 December 2024 at 2:19am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Set Font for CXTTabCtrl
Posted By: douglashogan
Subject: Set Font for CXTTabCtrl
Date Posted: 12 November 2003 at 5:41pm

Current draw code uses set built in fonts:

CXTTabCtrl.cpp

void CXTTabCtrlBase::OnDrawTop(CDC *pDC, CRect rcClient, CRect rcItem)
{
...

   pDC->SelectObject(m_bBoldFont ? &xtAfxData.fontBold : &xtAfxData.font);
...

}

 

I need to specify a different font just for the tab control tabs

InitializeFont doesn't seem to help

 



-------------
Regards
Douglas Hogan



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net