• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 534
  • Last Modified:

How to set CListView's background image ?

Hello every one, I want to set a bmp file as the CListView control's(not CListCtrl)  background, I found CListView class has a class member function named SetBkImage, I can set an image file as listview's background by invoking it, but I can not set the listview's background mode to transparent. So, how can I set CListView's background ?
0
Tom_lyd
Asked:
Tom_lyd
1 Solution
 
AlexFMCommented:
Can you explain with more details what do you try to do? Background image or transparent background mode? How should it look?
0
 
joghurtCommented:
You may find some ideas from the codes here: http://codeproject.com/listctrl/
0
 
Tom_lydAuthor Commented:
I want to set the listview's background with a bmp file or a jpg file, and when I insert an item, it can not override the background, but the CListView::SetBkItem can not do it, how can I do it ?
0
[Webinar] Kill tickets & tabs using PowerShell

Are you tired of cycling through the same browser tabs everyday to close the same repetitive tickets? In this webinar JumpCloud will show how you can leverage RESTful APIs to build your own PowerShell modules to kill tickets & tabs using the PowerShell command Invoke-RestMethod.

 
bkfirebirdCommented:
did you figure this one out ?
0
 
Tom_lydAuthor Commented:
No
0
 
bkfirebirdCommented:
try GetDC()->SetBkMode(TRANSPARENT)
0
 
bkfirebirdCommented:
i was also working on something similar .... but after much fumbling, i decide to try GfXList .... its looks pretty neat
http://www.codeguru.com/Cpp/frameworks/advancedui/outlookcontrols/article.php/c3223/
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now