Solved

How to set CListView's background image ?

Posted on 2004-04-07
7
516 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
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Pressing cancel button with C# UI Automation 3 81
deburging in oracle form 12 105
if loop in java 3 154
zeroMAx challenge 20 114
This is to be the first in a series of articles demonstrating the development of a complete windows based application using the MFC classes.  I’ll try to keep each article focused on one (or a couple) of the tasks that one may meet.   Introductio…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

830 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