请输入您要查询的百科知识:

 

词条 SetImageList
释义

CTreeCtrl::SetImageList

CImageList* SetImageList( CImageList * pImageList, int nImageListType );

返回值

Pointer to the previous image list, if any; otherwise NULL.

返回指向先前的图像列表的指针(如果有);否则返回NULL

参数说明

pImageList

Pointer to the image list to assign. If pImageList is NULL, all images are removed from the tree view control.

指向要被分配的图像列表的指针。如果pImageList是NULL,则从tree view控件中删除所有的图像。

nImageListType

Type of image list to set. The image list can be one of the following values:

要设置的图像列表的类型。图像列表可以是下列值之一:l TVSIL_NORMAL 获取常规的图像列表,它包含了该tree view项的被选择的和不被选择的图像。l TVSIL_STATE 获取状态图像列表,它包含了处于用户定义状态的treeview项的图像。

TVSIL_NORMAL Sets the normal image list, which contains the selected and nonselected images for the tree view item.TVSIL_STATE Sets the state image list, which contains the images for tree view items that are in a user-defined state.

备注

Call this function to set the normal or state image list for a tree view control and redraw the control using the new images.

此成员函数用来设置一个tree view控件的常规或状态图像列表,并使用新的图

CTreeCtrl Overview | Class Members | Hierarchy Chart

相关参考资料

CImageList, CTreeCtrl::GetImageList

随便看

 

百科全书收录4421916条中文百科知识,基本涵盖了大多数领域的百科知识,是一部内容开放、自由的电子版百科全书。

 

Copyright © 2004-2023 Cnenc.net All Rights Reserved
更新时间:2024/12/23 17:16:41