Click here to Skip to main content
13,665,440 members
Rate this:
 
Please Sign up or sign in to vote.
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 11-Aug-18 0:29am
Updated 12-Aug-18 7:37am
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

See Merge two header columns of clistcntrl in mfc[^]. It appears that you cannot do that.
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

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.
  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web01-2016 | 2.8.180810.1 | Last Updated 12 Aug 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100