CListCtrl 添加CheckBox、整行选中、表格线属性代码
来源:互联网 发布:知乎如何邀请别人回答 编辑:程序博客网 时间:2024/05/22 15:16
baidu: "ccheckbox clistctrl"http://recall.blog.163.com/blog/static/103669852007017114326903/ //获取原风格属性 DWORD dwStyle = m_List.GetExtendedStyle(); //添加CheckBox、整行选中、表格线属性 dwStyle |= LVS_EX_CHECKBOXES | LVS_EX_FULLROWSELECT | LVS_EX_GRIDLINES; //设置新属性到控件 m_List1.SetExtendedStyle( dwStyle );初始化: m_liList1.InsertColumn(0, " "); m_liList1.SetColumnWidth(0,20); m_liList1.InsertColumn(1, "Name"); m_liList1.SetColumnWidth(1,100); m_liList1.InsertColumn(2, "Status"); m_liList1.SetColumnWidth(2,100); CString strTemp; for (int i=0; i<10; i++) { strTemp.Format("No:Name%03d", i+1); m_liList1.InsertItem(i, ""); m_liList1.SetItemText(i, 1, strTemp); }CheckBox检查函数:void CCheckBox_ListCtrlDlg::OnButton1(){ // TODO: Add your control notification handler code here for (int i=0; i<10; i++) { if (m_List.GetCheck(i)) { m_List.SetTextColor(RGB(255,127,135)); m_List1.SetItemText(i,2, "Chechked"); } else { m_List.SetTextColor(RGB(125,127,255)); m_List.SetItemText(i,2, ""); } }}
- CListCtrl 添加CheckBox、整行选中、表格线属性代码
- 选中checkbox给表格tr添加样式
- CListCtrl 整行选中
- checkbox复选框选中表格中的行
- checkbox选中属性---坑到死
- CListCtrl检测checkbox是否被选中
- clistctrl选中当行
- CListCtrl选中行
- CListCtrl删除选中行
- CListCtrl删除选中行
- CListCtrl选中行
- CListCtrl选中某行
- CListCtrl删除选中行
- CListCtrl删除选中行
- OAF CheckBox 代码选中
- checkbox 选中事件代码
- jQuery注册表格(table)行(tr)点击选中checkbox事件
- 用代码实现clistctrl某行的选中
- 程序员的十层楼
- 个人收藏之 - 一些网站
- 可调整标签文本对齐方式的群组框
- delphi中用socket解析域名获得IP地址
- 架构设计的注意事项
- CListCtrl 添加CheckBox、整行选中、表格线属性代码
- SAP CRM 租赁行业 解决方案
- VC小技巧
- STL---map
- 大学的那点儿事儿
- 测试回顾版-Loadrunner脚本编程(1)-大体思路
- 复杂模型机设计
- 我看《走出软件作坊》
- JSF、Facelets中添加RICH FACE导致ViewExpiredException的问题