for 循环 返回 A, B, C返回 值放在CString m_result中 int m_REG_SZ_icon,m_REG_DWORD_icon;
m_Image1.Create(16,16,ILC_COLOR16|ILC_MASK,0,1);
m_REG_SZ_icon=m_Image1.Add(AfxGetApp()->LoadIconA(IDI_ICON1));
m_mlist.SetImageList(&m_Image1,LVSIL_SMALL);
m_mlist.InsertItem( m_mlist.GetItemCount(), m_result, m_REG_SZ_icon );如何 让LIST中 显示 A
B
C
三行啊?
m_Image1.Create(16,16,ILC_COLOR16|ILC_MASK,0,1);
m_REG_SZ_icon=m_Image1.Add(AfxGetApp()->LoadIconA(IDI_ICON1));
m_mlist.SetImageList(&m_Image1,LVSIL_SMALL);
m_mlist.InsertItem( m_mlist.GetItemCount(), m_result, m_REG_SZ_icon );如何 让LIST中 显示 A
B
C
三行啊?
int idx=-1;idx = m_result.Find(",");strA=m_result.Left(idx);m_result.TrimLeft(strA+",");
idx = m_result.Find(",");strB=m_result.Left(idx);m_result.TrimLeft(strB+",");
strC = m_result;再分别插入
AfxExtractSubString 应该怎么写 知道的帮忙写一下!~~
谢谢了
或有其他方法的 也帮忙写一下!~!~!~!~!
CString str;
while (AfxExtractSubString(str,m_result,pos++,','))
{
m_mlist.InsertItem(m_mlist.GetItemCount(), str, m_REG_SZ_icon);
}
AfxExtractSubString从m_result取得一个子字符串(位置为pos),并保存到str中