Solved

How to set CListView's background image ?

Posted on 2004-04-07
7
513 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 ?
0
Comment
Question by:Tom_lyd
7 Comments
 
LVL 48

Expert Comment

by:AlexFM
ID: 10774723
Can you explain with more details what do you try to do? Background image or transparent background mode? How should it look?
0
 
LVL 6

Expert Comment

by:joghurt
ID: 10775495
You may find some ideas from the codes here: http://codeproject.com/listctrl/
0
 

Author Comment

by:Tom_lyd
ID: 10788853
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
ScreenConnect 6.0 Free Trial

Want empowering updates? You're in the right place! Discover new features in ScreenConnect 6.0, based on partner feedback, to keep you business operating smoothly and optimally (the way it should be). Explore all of the extras and enhancements for yourself!

 
LVL 4

Expert Comment

by:bkfirebird
ID: 10830219
did you figure this one out ?
0
 

Author Comment

by:Tom_lyd
ID: 10830273
No
0
 
LVL 4

Expert Comment

by:bkfirebird
ID: 10847048
try GetDC()->SetBkMode(TRANSPARENT)
0
 
LVL 4

Accepted Solution

by:
bkfirebird earned 500 total points
ID: 10847060
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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Installing Microsoft R server on REDHAT or SUSE Linux 4 139
changeXy challenge 13 84
Unix Command -- Challenging  question 7 92
Annoying "thing" blocks my view 4 101
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question