注册 登录
编程论坛 VC++/MFC

列表框中输入数据的提取

luoyangldy 发布于 2011-02-12 10:14, 701 次点击
你好,在列表框中输入数据之后,想要进行相应的计算,但是不知道如何提取,提取输入数据的指令是什么?列表框中输入的数据比较多,相当于一个20X5的数组,我想每列每列提取,可以实现吗?如何实现?谢谢!
2 回复
#2
luoyangldy2011-02-12 10:48
,没有人吗?
#3
沼泽2011-02-12 13:47
CListCtrl::GetItemText
int GetItemText( int nItem, int nSubItem, LPTSTR lpszText, int nLen ) const;//nItem是行号,nSubItem是列号
CString GetItemText( int nItem, int nSubItem ) const;
Return Value
The version returning int returns the length of the retrieved string.
The version returning a CString returns the item text.
Parameters
nItem
The index of the item whose text is to be retrieved.
nSubItem
Specifies the subitem whose text is to be retrieved.
lpszText
Pointer to a string that is to receive the item text.
nLen
Length of the buffer pointed to by lpszText.

1