user440607
user440607

Reputation: 29

Custom CListCtrl

I need to create a ListControl in MFC, each row having different number of columns. How can I do this?

Upvotes: 0

Views: 2633

Answers (3)

clsy
clsy

Reputation: 21

You may refer to my guru's(Chris Maunder-Codeproject founder) article:
http://www.codeproject.com/KB/miscctrl/gridctrl.aspx

Upvotes: 1

Kirill V. Lyadvinsky
Kirill V. Lyadvinsky

Reputation: 99695

You could use custom-draw List Control. Then you can specify maximum columns for the control, but draw only specified number of columns in each row. You can fill unwanted columns with a background color. Here's a sample of how you could create custom-draw list control.

Upvotes: 0

Hans Passant
Hans Passant

Reputation: 942358

That's not possible. The workaround is trivial, just don't put any text in the sub-item.

Upvotes: 1

Related Questions