Solved

CListCtrl:: 2 line column titles

Posted on 1998-07-23
2
327 Views
Last Modified: 2013-11-20
In a CListCtrl, I would like to have 2 line column titles.
How do I do this ?
0
Comment
Question by:softev
2 Comments
 
LVL 15

Expert Comment

by:Tommy Hui
ID: 1319660
Your best bet would be to take a look at the grid control on http://www.codeguru.com, which gives you more control over the list control.

http://www.codeguru.com/controls/gridctrl.shtml


0
 
LVL 8

Accepted Solution

by:
Answers2000 earned 100 total points
ID: 1319661
My suggestion are two possible approaches

Either
(1) Find the header control on the list control (it's a child window so you can find it easily by stepping thru children it's usually the only one - if not double check by checking the class name)  subclass this and/or draw the text into a bitmap and put the bitmap onto the header control instead of the actual text

or

(2) Turn off the header in the list control.  Put your own header control above the real one.  In the case you need to respond to messages (for example column resizing) sent to the header control, and invoke the corresponding action on the list control.

I like (1) better but it's tricky, but can be done.
0

Featured Post

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Expand macro to ask for filename column 8 37
Prevent this page from creating additional dialogs. 3 532
conditional code and condition difference 9 82
fix34  challenge 9 119
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: 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.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…

777 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