vc ListBox Multi-column属性到底能显示多少列?
我想把txt文档的内容,在ListBox(已经勾选Multi-column属性)中显示出来,但是显示不完整。不知道是什么问题,特向高手求助!!!
如:txt文档内容为:
编号 X Y Z
1 36589.41 25273.32 2195.17
2 37631.08 31324.51 728.69
3 39100.97 24934.98 2386.50
4 40426.54 30319.81 757.31
在列表框中的效果如下:
编号 X Y
1 36589.41 252
2 37631.08 313
3 39100.97 249
4 40426.54 303
相关代码:
……
CStdioFile file;
file.Open(文件的路径,CStdioFile::modeReadWrite);
CString strLine;
while(file.ReadString(strLine))
{
m_GroundCtrl.AddString(strLine); //m_GroundCtrl为列表框的控件型变量
}
……