ListCtrl 重绘(选中单元格可高亮单元格颜色,双击/右击单元格可编辑,Enter键退出单元格编辑模式)
1. 项目准备工作:1.1 新建项目文件:ListCtrlExpDemo,选择基于对话框模式;1.2 在主窗口对话框界面加入List Control 控件,并设置其属性;1.2.1 Owner Draw Fixed设置为True:1.2.2 View 设置为Report:1.3 给List Control 控件添加变量:m_listCtrlexp1.4新建一个MFC类COwnListCtrl,其基类为CListCtrl;在ListCtrlExpDemoDlg.h文件中添加头文件.
原创
2021-01-20 11:13:16 ·
837 阅读 ·
0 评论