作为标题,我使用CDC工具绘制文本,如下代码,并使用nXOffset变量移动位置以对齐我的文本,但移位长度的结果在windows 7和windows xp中是尊重的,windows 7是可以的,但是window xp不是我的期望。如何解决它,以及制造什么样的问题?
CDC* m_cdcRealTimeValue;
m_cdcRealTimeValue->SelectObject(&mFont);
m_cdcRealTimeValue->SetTextColor(colorText);
m_cdcRealTimeValue->TextOut(rectRealTime.Width() - nXOffset,
(int)(nRealTimeRg[1] + nYGapRealTime[0]), strTempPVLastMove.Left(nPreDot), strTempPVLastMove.Left(nPreDot).GetLength());