Exemplo n.º 1
0
// Paint the actual status of the progress bar
void
ProgressBar::paintStatus( CDC &dc )
{
    if ( m_progress <= 0 )
        return;

    CBrush brshStatus;
    CRect rect( m_bounds.left, m_bounds.top,
                m_bounds.left + m_progressX, m_bounds.bottom );

    COLORREF statusColor = getStatusColor();

    VERIFY( brshStatus.CreateSolidBrush( statusColor ) );

    rect.DeflateRect( 1, 1 );
    dc.FillRect( rect, &brshStatus );
}
/**
 * Build the coloring chain for the terminal.
 * @param status Define the status used to select the color.
 * @return Return the sepcial chain as std::string.
**/
string svutResultFormatterStdColored::setStatusColor(svutStatus status) const
{
	return setColor(getStatusColor(status));
}