Forum
Please
Log In
to post a new message or reply to an existing one. If you are not registered, please
register.
NOTE: Some forums may be read-only if you are not currently subscribed to
our technical support services.
Subject |
Author |
Date |
|
Chris Douglass
|
Apr 29, 2005 - 2:02 PM
|
How do I change the font size in the tabs?
|
|
Technical Support
|
Apr 30, 2005 - 10:09 AM
|
Please create a CExtTabWnd -derived class and implement the following internal virtual method:virtual CFont & _GetTabWndFont(
bool bSelected,
DWORD dwOrientation = DWORD(-1) // default orientation
) const; This method should return a reference to the pre-cached CFont object. If the dwOrientation parameter is set to DWORD(-1) , then you should get the orientation code by calling CExtTabWnd::OrientationGet() method. The orientation code is one of __ETWS_ORIENT_TOP , __ETWS_ORIENT_BOTTOM , __ETWS_ORIENT_LEFT or __ETWS_ORIENT_RIGHT values. You can take a look at the CExtTabWnd::_GetTabWndFont() method in the ExtTabWnd.cpp file for implementation details. If you use a tab control which is always oriented horizontally, then you need to create only one CFont instance with a font of the corresponding size. This can be done in the class constructor.
|
|