默认情况下是+和-号,请问如何替换成自己想要的图片?
解决方案 »
- 捕获鼠标坐标
- 如何拦截远程消息?
- 关于MFC GDI绘图坐标系的问题
- Microsoft C# Windows程序设计 与 WINDOWS程序设计 是同一本书吗?
- OnPaint函数中位图显示不出来,请大家帮帮忙!
- =================请问哪里有像金山詞霸的语音朗读引擎的相关资料=========================非常感谢==
- 急!急!急!:为什么我第一次拖动标题栏时Tab属性页的子窗体在剧烈晃动,而第二次拖动时却没有出现这种情况??
- 用VC++怎么样做自动开关CD-ROM?
- 初学SDK,有些难点问题想请教各位!~
- vc的难题关于控件的
- 视频图象匹配问题,高手看过来
- 在VC6.0下能运行VC5.0的程序吗
UINT mask;
HTREEITEM hItem;
UINT state;
UINT stateMask;
LPTSTR pszText;
int cchTextMax;
int iImage;
int iSelectedImage;
int cChildren;
LPARAM lParam;
} TVITEM, *LPTVITEM;
iImage
Index in the tree-view control's image list of the icon image to use when the item is in the nonselected state. If this member is the I_IMAGECALLBACK value, the parent window is responsible for storing the index. In this case, the tree-view control sends the parent a TVN_GETDISPINFO notification message to retrieve the index when it needs to display the image.
iSelectedImage
Index in the tree-view control's image list of the icon image to use when the item is in the selected state. If this member is the I_IMAGECALLBACK value, the parent window is responsible for storing the index. In this case, the tree-view control sends the parent a TVN_GETDISPINFO notification message to retrieve the index when it needs to display the image.
CImageList * pImageList,
int nImageListType );
Parameters pImageList
Specifies the pointer to the image list to assign. If pImageList is NULL, all images are removed from the tree view control.
nImageListType
Specifies the type of image list to set. The image list can be one of the following values:
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