We help IT Professionals succeed at work.

How to set CListView's background image ?

Tom_lyd
Tom_lyd asked
on
561 Views
Last Modified: 2013-11-20
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 ?
Comment
Watch Question

Commented:
Can you explain with more details what do you try to do? Background image or transparent background mode? How should it look?

Commented:
You may find some ideas from the codes here: http://codeproject.com/listctrl/

Author

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 ?
did you figure this one out ?

Author

Commented:
No
try GetDC()->SetBkMode(TRANSPARENT)
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.