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

麻烦各位看下这段代码是什么意思,能帮我标上注释吗

pyw1688 发布于 2013-01-10 15:41, 373 次点击
void CShowDlg::OnDeleteRecord()
{
    // TODO: Add your control notification handler code here

    int nIndex = m_recordArea.GetCurSel();
   
    CString strRecord;

    strRecord.Format("%d", nIndex+1);

    m_recordArea.DeleteString(nIndex);

    m_recordArea.InsertString(nIndex, strRecord);

    m_recordArea.SetCurSel(nIndex);
   
}
尤其是那个Format那句到底是什么意思???  万分感谢
2 回复
#2
wp2319572013-01-10 15:58
CString strRecord;
strRecord.Format("%d", nIndex+1);

这2句弄完后,strRecord=(字符型)(nIndex+1)

#3
玩出来的代码2013-01-10 16:01
你需要的是这个

http://msdn.
1