Click here to Skip to main content
15,892,737 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
|Category | Server1 | Server2 |
| |-summary |-detailed |-summary | -detailed |
|cat1 | - - | - - |


here summary and detailed will have checkbox '-' denotes checkbox.
I need to put 2 columns under one server. How i can do it?

What I have tried:

I have successfully put checkbox
Posted
Updated 12-Aug-18 7:37am

See Merge two header columns of clistcntrl in mfc[^]. It appears that you cannot do that.
 
Share this answer
 
You cant do it direct and it will be hard work, but there are some strategies for more complex list controls. The key is overriding some members for manipulating the appareance of the control and/or owner drawing.

So I search some examples and hope that you find some of it useful. First an example owner drawing, another example of owner drawing with some overriding and an example of multi line list control. Another and more complex scenario is that you place controls in a list control element like in this List Control Extended for Progress Control.

I personally dislike changing the behaviour and look'n'feel of standard controls because it is irretating the average users. So also consider to rethink your complex design.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900