We fixed this bug. Thank you. Please update the following method:
void CExtPaintManagerOffice2007_R2_Obsidian::PaintTabButton(
CDC & dc,
CRect & rcButton,
LONG nHitTest,
bool bTopLeft,
bool bHorz,
bool bEnabled,
bool bHover,
bool bPushed,
bool bGroupedMode,
CObject * pHelperSrc,
LPARAM lParam, // = 0L
bool bFlat // = false
)
{
ASSERT_VALID( this );
ASSERT( dc.GetSafeHdc() != NULL );
if( IsHighContrast() )
{
CExtPaintManagerXP::PaintTabButton(
dc,
rcButton,
nHitTest,
bTopLeft,
bHorz,
bEnabled,
bHover,
bPushed,
bGroupedMode,
pHelperSrc,
lParam,
bFlat
);
return;
}
COLORREF clrGlyph = RGB(141,141,141);
if( bEnabled )
{
if( pHelperSrc != NULL
&& pHelperSrc->IsKindOf(RUNTIME_CLASS(CExtPopupMenuWnd))
)
clrGlyph = RGB(0,0,0);
else
clrGlyph = RGB(255,255,255);
}
COLORREF clrTL =
GetColor(
bPushed
? COLOR_3DDKSHADOW
: COLOR_3DHILIGHT
,
pHelperSrc,
lParam
);
COLORREF clrBR =
GetColor(
bPushed
? COLOR_3DHILIGHT
: COLOR_3DDKSHADOW
,
pHelperSrc,
lParam
);
CExtPaintManager::stat_PaintTabButtonImpl(
dc,
rcButton,
nHitTest,
bTopLeft,
bHorz,
bEnabled,
bHover,
bPushed,
bGroupedMode,
clrGlyph,
clrTL,
clrBR,
bFlat
);
}