开发者

Custom CListCtrl

I need to create a ListControl in MFC, each row having different number of col开发者_如何学JAVAumns. How can I do this?


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


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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜