Sign in to follow this  
Followers 0
Dana

Listview header size

3 posts in this topic

I'm working with a listview where the column titles are longer than the actual data in the columns. There's also quite a few columns, and I'd like to display them all without scrolling. What I'd like to do is display the column tables in the header in a smaller font than the actual data text in the columns, but I don't see any way to do that (actually, a two line header would be ideal). Then I could autosize the columns to the size of the data, and still have room for the longer titles.

-Dana

Share this post


Link to post
Share on other sites



This might help...

http://www.codeproject.com/KB/list/customheader.aspx

Though I am not sure how helpful it will be. This caught my eye:

With common controls version 4.70 and later, column header supports images from an ImageList and bitmaps

That means that practically all computers will allow you do do that... I don't know how you would go about implementing it...

I'll play around later.

Mat

Share this post


Link to post
Share on other sites

_GUICtrlListView_InsertColumn takes an index for an item on the control's ImageList. It should work to display a bitmap loaded with GDIPlus, for instance.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0