怎么在CListView 中应用 背景图??

hbs_biscuit CSDN会员 hbs_biscuit 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
我想在CListView 中应用背景图,代码是这样写的:
void CMy123View::OnInitialUpdate()
{
CListView::OnInitialUpdate();


// TODO: You may populate your ListView with items by directly accessing
// its list control through a call to GetListCtrl().
CListCtrl& listctrl=GetListCtrl();
CBitmap bitmap;
bitmap.LoadBitmap(IDB_BITMAP1);
listctrl.SetBkImage(bitmap);
Invalidate();

}
但是显示不出背景图,大家帮忙看看是怎么回事!!
...全文
评论 3
收藏 已收藏
分享
返回顶部
hbs_biscuit CSDN会员
VC/MFC 16,550 成员 421,606 内容