上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 164 下一页
摘要: BOOL b4 = mylist4.SetTextBkColor(RGB(255, 255, 0));//设置文本背景色 /* 参数:COLORREF 返回值:成功非零; 否则零 */ 阅读全文
posted @ 2023-04-30 05:44 天子骄龙 阅读(41) 评论(0) 推荐(0)
摘要: COLORREF col = mylist4.GetTextColor();//获取文本前景色 阅读全文
posted @ 2023-04-30 05:38 天子骄龙 阅读(16) 评论(0) 推荐(0)
摘要: BOOL b3 = mylist4.SetTextColor(RGB(0,0,255));//设置文本前景色 /* 参数:COLORREF 返回值:成功非零; 否则零 */ 阅读全文
posted @ 2023-04-30 05:34 天子骄龙 阅读(82) 评论(0) 推荐(0)
摘要: //判断风格 DWORD dwStyle = mylist4.GetStyle() & LVS_TYPEMASK; if (dwStyle == LVS_REPORT) { //如果是报表模式 AfxOutputDebugString(_T("报表模式\r\n")); } 阅读全文
posted @ 2023-04-30 05:13 天子骄龙 阅读(17) 评论(0) 推荐(0)
摘要: BOOL b3 = mylist4.DeleteItem(1); //从列表视图控件中删除某行 /* 参数:int 行号 返回值:成功返回非0,失败返回0 */ 阅读全文
posted @ 2023-04-30 05:02 天子骄龙 阅读(46) 评论(0) 推荐(0)
摘要: BOOL b2=mylist4.DeleteColumn(1); //删除列表视图控件中的某列 /* 参数:int 列号 返回值:成功返回非0,失败返回0 */ 阅读全文
posted @ 2023-04-30 04:56 天子骄龙 阅读(33) 评论(0) 推荐(0)
摘要: 方式一 CString str1 = mylist4.GetItemText(1, 1);//获取文本 /* 参数1:int nItem 行号 参数2:int nSubItem 列号 */ OutputDebugString(str1); 方式二 TCHAR szBuf[1024]; LVITEM 阅读全文
posted @ 2023-04-29 21:50 天子骄龙 阅读(449) 评论(0) 推荐(0)
摘要: BOOL b1=mylist4.SetItemState(1, LVIS_SELECTED | LVIS_FOCUSED, LVIS_SELECTED | LVIS_FOCUSED);//选中指定行 /* 参数1:int nItem 行号, -1 可将状态更改应用于所有项 参数2:UINT nSta 阅读全文
posted @ 2023-04-29 21:43 天子骄龙 阅读(222) 评论(0) 推荐(0)
摘要: DWORD ExStyles = mylist4.GetExtendedStyle();//获取扩展样式 DWORD oldstyle=mylist4.SetExtendedStyle(ExStyles | LVS_EX_FULLROWSELECT);//设置扩展样式 /* 指定的扩展样式 LVS_ 阅读全文
posted @ 2023-04-29 21:31 天子骄龙 阅读(72) 评论(0) 推荐(0)
摘要: BOOL bb=mylist4.SetItemText(0,1,_T("87"));//设置文本 /* 参数1:int 项索引-行号【从0开始 不包括标题栏】 参数2:列号 参数3:LPCTSTR 文本 返回值:成功返回非0,失败返回0 */ 阅读全文
posted @ 2023-04-29 16:32 天子骄龙 阅读(314) 评论(0) 推荐(0)
上一页 1 ··· 35 36 37 38 39 40 41 42 43 ··· 164 下一页