MyListCtrl这个类可以实现在点击列表头时,对列进行排序。想使用这样功能的listctrl可以用它来作为基类。
2023-06-19 19:16:41 2KB vc clistctrl 排序
1
实现了clistctrl 的单击 标题栏的 排序功能.mfc版本是vs2010
2023-06-19 17:44:04 37KB clistctrl sort mfc
1
完美的绘制了CListCtrl的Item部分和非item部分 效果类似CSDN的网格线效果
2023-04-03 15:52:29 49KB 自绘CListCtrl和CHeaderCtrl
1
实现MFC对话框中两个CListCtrl的滚动条同步,初学者,勿喷,多谢。
2023-03-30 09:04:27 15.61MB CListCtrl 滚动条同步
1
listCtrl控件可编辑,即双击单元格,可填入相应内容
2023-03-21 17:30:23 31KB 可编辑 CListCtrl listCtrl
1
通过重绘CListCtrl的方法,实现CListCtrl中某项添加CComboBox.....
2023-01-11 08:58:08 1.83MB CListCtrl中某项添加CComboBox
1
自绘CListCtrl类,实现列表控件的行高修改
2022-12-31 09:56:18 2KB CListCtrl 行高
1
可修改行高的CListCtrl 可修改行高的CListCtrl
2022-12-31 09:51:08 5.65MB 修改 行高 CListCtrl
1
可修改颜色的一个CListCtrlCl类 部分函数如下所示 public: 行高 int m nRowHeight; int InsertColumn int nCol LPCTSTR lpszColumnHeading int nFormat LVCFMT LEFT int nWidth 1 int nSubItem 1 ; public: Gradient 渐变系数 立体背景用 不用渐变设为0 void SetHeaderBKColor int R int G int B int Gradient ; public: 设置表头高度 void SetHeaderHeight float Height ; CPtrList m ptrListCol; 保存列颜色 CPtrList m ptrListItem; 保存Item颜色表 CPtrList m colTextColor; 保存列字体颜色 CPtrList m ItemTextColor; 保存单元格字体颜色 bool FindColColor int col COLORREF &color ; 查找列颜色 bool FindItemColor int col int row COLORREF &color ; bool FindColTextColor int col COLORREF &color ; 查找列字体颜色 bool FindItemTextColor int col int row COLORREF &color ; void SetColColor int col COLORREF color ; 设置列颜色 void SetItemColor int col int row COLORREF color ; 设置Item颜色 void SetColTextColor int col COLORREF color ; 设置列文本颜色 void SetItemTextColor int col int row COLORREF color ; void SetRowHeigt int nHeight ; 设置行高 void SetHeaderFontHW int nHeight int nWith ; 设置表头字体大小 void SetHeaderTextColor COLORREF color ; COLORREF m color; BOOL SetTextColor COLORREF cr ; void SetFontHW int nHeight int nWith ; 设置字体的高和宽 void EraseItemColor int col int row ; stColor FindItemColor2 int col int row COLORREF &color ; void EraseAllColor ;">可修改颜色的一个CListCtrlCl类 部分函数如下所示 public: 行高 int m nRowHeight; int InsertColumn int nCol LPCTSTR lpszColumnHeading int nFormat LVCFMT LEFT int nWidth 1 int nSubItem 1 ; public: Gradient 渐变系数 立体背景用 不用渐变设为0 [更多]
2022-12-13 16:20:42 6KB C++ CListCtrlCl ClistCtrl
1
MFC中使用CListCtrl的例子,实现了每行不同字体颜色,不同字体背景的显示,可以根据某行的内容实现不同字体颜色、背景的显示。
2022-12-11 20:54:22 47KB CListCtrl
1