Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > Visual C++ MFC > Toolkit Pro
  New Posts New Posts RSS Feed - Set Font for CXTTabCtrl
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Set Font for CXTTabCtrl

 Post Reply Post Reply
Author
Message
douglashogan View Drop Down
Groupie
Groupie


Joined: 02 July 2003
Location: Switzerland
Status: Offline
Points: 62
Post Options Post Options   Thanks (0) Thanks(0)   Quote douglashogan Quote  Post ReplyReply Direct Link To This Post Topic: Set Font for CXTTabCtrl
    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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.188 seconds.