CTreeCtrl::SetItemText
Visual Studio 2013
设置 hItem指定的项的文本。
BOOL SetItemText( HTREEITEM hItem, LPCTSTR lpszItem );
Header: afxcmn.h
CListCtrl::SetItemText
BOOL SetItemText( int nItem, int nSubItem, LPTSTR lpszText );
Return Value
Nonzero if successful; otherwise zero.
Parameters
nItem
Index of the item whose text is to be set.
nSubItem
Index of the subitem, or zero to set the item label.
lpszText
Pointer to a string that contains the new item text.
例子:
m_list1.InsertItem(0,"");
m_list1.SetItemText(0,0 , "1、培训时间");
m_list1.SetItemText(0,1 , "[ ]");
本文介绍如何使用Visual Studio中MFC的CTreeCtrl类的SetItemText方法来更新树视图控件中指定项的文本内容。文中提供了具体的方法调用语法、参数说明及返回值,并附带了示例代码。
2万+

被折叠的 条评论
为什么被折叠?



