怎么在CListView 中应用 背景图??
我想在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();
}
但是显示不出背景图,大家帮忙看看是怎么回事!!
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();
}
但是显示不出背景图,大家帮忙看看是怎么回事!!
...全文


