5,530
社区成员
发帖
与我相关
我的任务
分享
class CPropertyList : public CListBox //这个类中要有1个CEdit m_editBox
int nIndex = AddString(_T(""));
SetItemDataPtr(nIndex,pItem);//pItem是你自定义的可以表示list中的一行的数据结构
//在响应函数中创建编辑框
m_editBox.Create(...);
//设置显示文本
m_editBox.ShowWindow(SW_SHOW);
m_editBox.SetFocus();
m_editBox.SetWindowText();