Exemplo n.º 1
0
COLORREF CPreviewDC::SetTextColor( COLORREF crColor )
/***************************************************/
{
    COLORREF crOldColor = ::SetTextColor( m_hAttribDC, crColor );
    MirrorAttributes();
    return( crOldColor );
}
Exemplo n.º 2
0
void CPreviewDC::SetAttribDC(HDC hDC)
{
	ASSERT(hDC != NULL);
	CDC::SetAttribDC(hDC);

	MirrorMappingMode(TRUE);
	MirrorFont();
	MirrorAttributes();
}
Exemplo n.º 3
0
void CPreviewDC::SetAttribDC( HDC hDC )
/*************************************/
{
    CDC::SetAttribDC( hDC );
    if( m_hDC != NULL ) {
        MirrorAttributes();
        MirrorFont();
        MirrorMappingMode( TRUE );
    }
}
Exemplo n.º 4
0
void CPreviewDC::SetOutputDC( HDC hDC )
/*************************************/
{
    CDC::SetOutputDC( hDC );
    m_nSaveDCIndex = ::SaveDC( m_hDC );
    if( m_hAttribDC != NULL ) {
        MirrorAttributes();
        MirrorFont();
        MirrorMappingMode( FALSE );
    }
}
Exemplo n.º 5
0
void CPreviewDC::SetOutputDC(HDC hDC)
{
	ASSERT(hDC != NULL);
	m_nSaveDCIndex = ::SaveDC(hDC); // restore in ReleaseOutputDC()
	CDC::SetOutputDC(hDC);

	if (m_hAttribDC != NULL)
	{
		MirrorMappingMode(FALSE);

		if (m_hFont)
			::SelectObject(m_hDC, m_hFont);
		else
			MirrorFont();
		MirrorAttributes();
	}
}