I try to draw the texts in memory at first. Then copy the DC in memory to the window with BitBlt function. But this is not effective. What is the fault?
Such these codes:
DCD *pDC = GetDC();
CDC dcMem;
dcMem.CreateCompatibleDC(pDC);
dcMem.SelectObject(&font);
dcMem.SetTextColor(RGB(255, 0, 0));
dcMem.SetBkMode(TRANSPARENT);
dcMem.DrawText(strText, rcWnd, DT_VCENTER | DT_SINGLELINE);
pDC->BitBlt(0, 0, rcWnd.Width(), rcWnd.Height(), &dcMem, 0, 0, SRCCOPY);
dcMem.DeleteDC();
Thanks...