![]() |
|
#1
|
|||
|
|||
Changing the text color of 1 record in a CListCtrlHi.
I use CListCtrl that is set to a 'Report' view. I Inserted 10 lines using the SetItemText() method. My question is, can I set some of the ClistCtrl records/Lines to be in default black color and some in a different color ?? how can I control the color of the text that I insert to the control?? Another question, I overrided the 'double click' method when doule clicking on the CList control, and it works only if I double click on the first most left column of the control, suppose I have more then 1 column, how can I set the double click event for the 2nd or 3rd column ?? Thanks alot! |
|
#2
|
|||
|
|||
Re: Changing the text color of 1 record in a CListCtrlNM_CUSTOMDRAW should do the trick:
CPP / C++ / C Code:
About the second question: Use LVS_EX_FULLROWSELECT style for your list control CPP / C++ / C Code:
|
Recent GIDBlog
Stupid Management Policies by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| need help on text file analyser | ffantasy | C Programming Language | 1 | 05-Sep-2005 14:44 |
| changing colour of individual items of control created through CListCtrl | Sadia | MS Visual C++ / MFC Forum | 0 | 01-Jul-2005 09:09 |
| changing caption of static text control | Pandiani | MS Visual C++ / MFC Forum | 1 | 20-Sep-2004 02:38 |
| CD burner wont burn!! | robertli55 | Computer Hardware Forum | 1 | 18-Jun-2004 11:53 |
| Yet another CD burner problem: Lite-On LSC-24082K | Erwin | Computer Hardware Forum | 1 | 22-May-2004 12:28 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The