Problem with DrawText in XP
Question: I have developed a MFC program, which is calling many times the
DrawText function. With Windows 98, ME and NT there is no problem but with
XP the characters painted by the last call to DrawText in OnPaint appear
very slowly on the screen. I 'm using Visual C++ 6.0 with service pack 5. I
use MFC in a static library. How can I solve this problem?

{
size = pDC->GetTextExtent(pNode->m_str);
pDC->SetTextColor(m_crOverlay);
pDC->DrawText(pNode->m_str, rect,
DT_SINGLELINE | DT_LEFT | DT_VCENTER);
rect.left += size.cx;
rect.left += m_nSpacePixels;
}