listctrl添加背景色,图标去掉阴影
2015-02-09 20:26
274 查看
CBitmap bm;
bm.LoadBitmap(IDB_BITMAP_7STATE);//IDB_BITMAP_7STATE为bmp资源
m_rtuImageList[iPortID - 1].Create(48,48,ILC_COLOR32|ILC_MASK,0,0);//m_rtuImageList为imagelist控件对象
m_rtuImageList[iPortID - 1].Add(&bm, (COLORREF)0xFFFFFF);//屏蔽阴影
m_wndListMonitorPortRTUs[iPortID - 1].SetImageList( &m_rtuImageList[iPortID - 1] , LVSIL_NORMAL );//m_wndListMonitorPortRTUs为listctrl控件对象
m_wndListMonitorPortRTUs[iPortID - 1].SetBkColor(RGB(126,206,695));//设置背景色
m_wndListMonitorPortRTUs[iPortID - 1].SetTextBkColor(RGB(126,206,183)); //设置文字颜色
bm.LoadBitmap(IDB_BITMAP_7STATE);//IDB_BITMAP_7STATE为bmp资源
m_rtuImageList[iPortID - 1].Create(48,48,ILC_COLOR32|ILC_MASK,0,0);//m_rtuImageList为imagelist控件对象
m_rtuImageList[iPortID - 1].Add(&bm, (COLORREF)0xFFFFFF);//屏蔽阴影
m_wndListMonitorPortRTUs[iPortID - 1].SetImageList( &m_rtuImageList[iPortID - 1] , LVSIL_NORMAL );//m_wndListMonitorPortRTUs为listctrl控件对象
m_wndListMonitorPortRTUs[iPortID - 1].SetBkColor(RGB(126,206,695));//设置背景色
m_wndListMonitorPortRTUs[iPortID - 1].SetTextBkColor(RGB(126,206,183)); //设置文字颜色
相关文章推荐
- 去掉桌面图标的阴影和字体后的颜色
- 怎样去掉桌面图标和字的蓝色阴影
- 如何去掉桌面图标阴影?
- iOS导航栏背景色,去掉边界黑线,去掉搜索框的边界黑线和其中文本输入框的阴影
- 桌面图标有蓝色阴影怎么去掉
- 去掉桌面图标阴影
- 去掉桌面图标阴影
- Win7 PNG图标的边缘有阴影想要优化视觉享受如何将其去掉
- 桌面图标有阴影,教给你怎么去掉
- html自定义垂直导航菜单(多级导航菜单,去掉font-awesome图标,添加自己的箭头图标)
- 去掉App自动添加的图标半透明效果的方法
- How to add icon for the item of ListCtrl using C++ (Mail Attachment ListCtrl) - 如何用C++为ListCtrl的Item添加图标(邮件附件ListCtrl)
- 桌面上的图标下面有阴影,如何去掉?
- windows-xp桌面图标有蓝底怎么去掉:电脑桌面图标有蓝色阴影的解决办法
- 如何去掉桌面图标上的阴影?
- 怎样去掉桌面图标和字的蓝色阴影
- mfc 在ListCtrl控件的非第一列添加图标
- Android去掉桌面图标背景阴影
- 怎样去掉桌面图标阴影(文字背景透明)
- [iOS开发] 去掉app图标的半圈阴影