コード例 #1
0
ファイル: ProgressBar.cpp プロジェクト: todace/G-CVSNT
// 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 );
}
コード例 #2
0
/**
 * 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));
}