Professional UI Solutions
Site Map   /  Register
 
 

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.

Forums » Prof-UIS Tech Support » Tab control tab list drop arrow in black theme paint problem Collapse All
Subject Author Date
Offer Har Jun 2, 2008 - 12:40 PM

The arrow looks fine when not pressed:



But when pressed, the arrow disappear:



 

Technical Support Jun 6, 2008 - 1:03 PM

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
                        );
}