用textout怎么显示CString的字符串,要求1行显示一个字符?帮我看看程序.
用textout怎么显示CString的字符串,要求1行显示一个字符?帮我看看程序.
CString str="我们AFG实际12领导";
CString strTem;
for(int j=0; j< str.GetLength(); j++)
{
if( (BYTE)str[j] < 0x80 )
{
strTem=str.GetAt(j);
}
else
{
strTem=str.GetAt( j )+str.GetAt(j+1);//有问题???
j++;
}
pDC->TextOut(x+10,y+20 +j*20, strTem);
}
当然也可以把字体设置为竖的,但那样不好看.
如:logfont.lfEscapement = 2700; //改变本参数可决定字体是否旋转
我参考过帖子: http://topic.csdn.net/t/20050808/16/4196163.html