void CMyView::OnDraw (CDC* pDC)
{
    CBrush brush;
    if ((pDC->GetDeviceCaps (NUMCOLORS) == 2) &&
        (pDC->m_hDC != pDC->m_hAttribDC))
        brush.CreateSolidBrush (RGB (76, 76, 76)); // Grayscale red
    else
        brush.CreateSolidBrush (RGB (255, 0, 0)); // Genuine red

    CBrush* pOldBrush = pDC->SelectObject (&brush);
    pDC->Ellipse (0, 0, 400, 200);
    pDC->SelectObject (pOldBrush);
}
