📄 subject_61382.htm
字号:
<p>
序号:61382 发表者:Jann 发表日期:2003-11-19 14:45:20
<br>主题:求助ListBox类的问题
<br>内容:我是一个菜鸟<BR>在一个用ListBox作为显时数据信息的对话框中,使用什么函数把信息框中的数据信息保存下来?
<br><a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p>
<hr size=1>
<blockquote><p>
<font color=red>答案被接受</font><br>回复者:浪际天涯 回复日期:2003-11-19 14:56:24
<br>内容:你是说要保存listBox中的东西到文件吗?<BR>你可以这样:<BR>CStdioFile file;<BR>if(file.Open("c:\\tt.txt",CFile::modeCreate|CFile::modeWrite))<BR>{<BR> for(int i=0;i<m_list.GetCount();i++)<BR> file.WriteString(m_list.GetItemData(i)+"\n");<BR>}<BR>file.Close();
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
<hr size=1>
<blockquote><p>
回复者:巴拉克 回复日期:2003-11-19 15:25:57
<br>内容:int index = m_list.GetCurSel(); <BR>CString aa ;<BR>m_list.GetText(index,aa);
<br>
<a href="javascript:history.go(-1)">返回上页</a><br><a href=http://www.copathway.com/cndevforum/>访问论坛</a></p></blockquote>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -