在 afx_msg void OnDrawItem( int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct ); 里面写加圆点的代码
是ctreeview吗?还是ctreectrl?????
CTreeCtrl::SetImageList CImageList* SetImageList( CImageList * pImageList, int nImageListType );Return ValuePointer to the previous image list, if any; otherwise NULL.ParameterspImageListPointer to the image list to assign. If pImageList is NULL, all images are removed from the tree view control.nImageListTypeType 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. 要是两个都设的话就会有两个图标
afx_msg void OnDrawItem( int nIDCtl, LPDRAWITEMSTRUCT lpDrawItemStruct );
里面写加圆点的代码
CImageList* SetImageList( CImageList * pImageList, int nImageListType );Return ValuePointer to the previous image list, if any; otherwise NULL.ParameterspImageListPointer to the image list to assign. If pImageList is NULL, all images are removed from the tree view control.nImageListTypeType 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.
要是两个都设的话就会有两个图标