|
|
|
|
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 |
|
Kevin Rutherford
|
Mar 6, 2008 - 2:37 PM
|
How difficult is it to change the text color on a CExtTabPageContainerOneNoteWnd tab? I got changing the back ground color under control but I need to change the text color. Thanks.
-Kevin
|
|
Technical Support
|
Mar 8, 2008 - 11:13 AM
|
If you need to customize tab colors, just override the CExtTabOneNoteWnd::OnTabWndQueryItemColors virtual method. There you will find a number of parameters which used for colorizing tab’s background and text colors in any tab state (selected, hover, enabled/disabled) class CMyTabPageContainerWndOneNote : public CExtTabPageContainerOneNoteWnd
{
class CMyTabWndOneNote : public CExtTabOneNoteWnd
{
virtual void OnTabWndQueryItemColors(
LONG nItemIndex,
bool bSelected,
bool bHover,
bool bEnabled,
COLORREF * pclrBorderLight = NULL,
COLORREF * pclrBorderDark = NULL,
COLORREF * pclrBkLight = NULL,
COLORREF * pclrBkDark = NULL,
COLORREF * pclrText = NULL
)
{
...
}
};
virtual CExtTabWnd * OnTabWndGetTabImpl()
{
return new CExtTWPC < CMyTabWndOneNote >;
}
};
|
|