how to select multiple different Item and subItem in CListCtrl
I am not sure if this is possible.
I do not want to select the entire row.
My Table kinda treats each entry as unique entries, I want to be able select different entry and get the info on the entries I have selected.
for example if I have the below. I wish to be able to select X and P and be able to know that X and P are selected. Is there an example I can refer to?
-------------------------
|Cat A|Cat B|...
| X | Z |
| Y | P |
Re: how to select multiple different Item and subItem in CListCtrl
Check MSDN for NMLVCUSTOMDRAW notification and how to use it.
You will have to draw each cell and manage selection states.
Lookup MSDN for samples. I remember samples showing how to use different size fonts and background colors using structure holding color and font size information and using item data to make that information persistant for eachitem.
Re: how to select multiple different Item and subItem in CListCtrl
I think using grid control is better option for your requirement.
Re: how to select multiple different Item and subItem in CListCtrl
Re: how to select multiple different Item and subItem in CListCtrl
Thanx!
I am looking at the updated MDC Grid Control 2.25. Anyone used it? I am having problems using it.
http://www.codeproject.com/KB/miscct...k&fr=251#xx0xx
I am creating tabs in a Dialog box. These tabs inherift from CDialog, Not CPropertyPage.
Following the demo example, I used Custom Control to insert the object in a Dialog which later will be used as a tab).
I also used add variable to create a Var and setup the DDX.
when I do pDlg->Create( IDD, &m_tabs ); the return code is always a failure.
I suspect I am not creating the object right.
I had create a 2nd CGridCtrl in the Demo using the same method and it works just fine. Not sure what I am doing wrong here. or what must I watch out?