main/vcl/source/window/window.cxx
// returns background color used in this control
// false: could not determine color
returns background color used in this control
false: could not determine color
returns background color used in this control false : could not determine color
sal_Bool Window::ImplGetCurrentBackgroundColor( Color& rCol )
{
	sal_Bool bRet = sal_True;
    switch ( GetType() )
    {
        case WINDOW_PUSHBUTTON:
        case WINDOW_OKBUTTON:
        case WINDOW_CANCELBUTTON:
        default:
			if( IsControlBackground() )
				rCol = GetControlBackground();
			else if( IsBackground() )
				{
					Wallpaper aWall = GetBackground();
					if( !aWall.IsGradient() && !aWall.IsBitmap() )
						rCol = aWall.GetColor();
					else
						bRet = sal_False;
				}
			else
				rCol = GetSettings().GetStyleSettings().GetFaceColor();
			break;
    }
	return bRet;
}
sal_Bool Window :: ImplGetCurrentBackgroundColor ( Color & rCol ) { sal_Bool bRet = sal_True ; switch ( GetType ( ) ) { case WINDOW_PUSHBUTTON : case WINDOW_OKBUTTON : case WINDOW_CANCELBUTTON : default : if ( IsControlBackground ( ) ) rCol = GetControlBackground ( ) ; else if ( IsBackground ( ) ) { Wallpaper aWall = GetBackground ( ) ; if ( ! aWall . IsGradient ( ) && ! aWall . IsBitmap ( ) ) rCol = aWall . GetColor ( ) ; else bRet = sal_False ; } else rCol = GetSettings ( ) . GetStyleSettings ( ) . GetFaceColor ( ) ; break ; } return bRet ; }
returns background color used in this control
false: could not determine color
returns background color used in this control false : could not determine color
// peform special handling here // etc.