Solved

How to set CListView's background image ?

Posted on 2004-04-07
7
508 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
Comment Utility
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
Comment Utility
You may find some ideas from the codes here: http://codeproject.com/listctrl/
0
 

Author Comment

by:Tom_lyd
Comment Utility
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
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 4

Expert Comment

by:bkfirebird
Comment Utility
did you figure this one out ?
0
 

Author Comment

by:Tom_lyd
Comment Utility
No
0
 
LVL 4

Expert Comment

by:bkfirebird
Comment Utility
try GetDC()->SetBkMode(TRANSPARENT)
0
 
LVL 4

Accepted Solution

by:
bkfirebird earned 500 total points
Comment Utility
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

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Importing  SSL Certificate into Firefox using GPO 28 192
WinWaitActive parameters 12 31
sum28 challenge 31 95
fizzArray2 challenge 1 55
Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
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.
This video discusses moving either the default database or any database to a new volume.

744 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now