用GetItemText()方法
int GetItemText( int nItem, int nSubItem, LPTSTR lpszText, int nLen ) const;CString GetItemText( int nItem, int nSubItem ) const;Return ValueThe version returning int returns the length of the retrieved string.The version returning a CString returns the item text.ParametersnItemThe index of the item whose text is to be retrieved.nSubItemSpecifies the subitem whose text is to be retrieved.lpszTextPointer to a string that is to receive the item text.nLenLength of the buffer pointed to by lpszText
自己看着吧,呵呵
int GetItemText( int nItem, int nSubItem, LPTSTR lpszText, int nLen ) const;CString GetItemText( int nItem, int nSubItem ) const;Return ValueThe version returning int returns the length of the retrieved string.The version returning a CString returns the item text.ParametersnItemThe index of the item whose text is to be retrieved.nSubItemSpecifies the subitem whose text is to be retrieved.lpszTextPointer to a string that is to receive the item text.nLenLength of the buffer pointed to by lpszText
自己看着吧,呵呵
解决方案 »
- 我用的是VS2008 C++ MFC,为什么会报这个错呢?用_T("宋体")和L"宋体"也编译不过。
- 如果是程序异常退出,会有消息发出吗?
- 我的数据从数据库里调出来是个随机数!!!!求高手帮忙
- 通过ADODB从数据库载入大量数据,打开时间非常长,导致界面长时间无响应,如何解决?
- 求助:怎么定义和声明函数数组,谢谢!
- 怎么用C API把 jpg图片储存入MySql数据库
- 深入浅出mfc 的问题!!
- 急求:“单目定位”程序与编写方式
- 老问题了
- dearmite: you made the BIGGEST mistake ever in history
- 访问注册表是否可以判断系统内安装了什么版本的outlook吗
- 5个字节中存放着4个10位的数据,如何使用位域从中读取?
list control的单击与双击(OnClickList OnDblclkList)都可以啊,都是自动得到行,列就要看你自己的定义了。
初始化定义list的时候设置风格为m_list.SetExtendedStyle( LVS_EX_FULLROWSELECT)